summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epan/dfilter/dfilter-macro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c
index dc079da590..6d9799b17b 100644
--- a/epan/dfilter/dfilter-macro.c
+++ b/epan/dfilter/dfilter-macro.c
@@ -370,6 +370,7 @@ static void macro_update(void* mp, const gchar** error) {
if (c >= '0' && c <= '9') {
cnt++;
r++;
+ *(w++) = '\0';
arg_pos *= 10;
arg_pos += c - '0';
} else {