diff --git a/src/detect-transform-dotprefix.c b/src/detect-transform-dotprefix.c index 295a149f8941..d58e1d4ad18d 100644 --- a/src/detect-transform-dotprefix.c +++ b/src/detect-transform-dotprefix.c @@ -116,8 +116,8 @@ static void TransformDotPrefix(InspectionBuffer *buffer, void *options) return; } + memmove(&output[1], buffer->inspect, input_len); output[0] = '.'; - memcpy(&output[1], buffer->inspect, input_len); InspectionBufferTruncate(buffer, input_len + 1); } }