diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c index fbc819f092..82907bcb52 100644 --- a/epan/dfilter/dfilter-macro.c +++ b/epan/dfilter/dfilter-macro.c @@ -370,8 +370,9 @@ static gboolean macro_update(void* mp, gchar** error) { *w = *r; goto done; case '\\': - *(w++) = *(++r); - r++; + *(w++) = *(r++); + if(*r) + *(w++) = *(r++); break; case '$': { int cnt = 0;