From: Ken Hornstein Date: Wed, 4 Dec 2013 02:36:39 +0000 (-0500) Subject: Whoops, shouldn't use autoincrement with a macro; forgot about side X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/322ec5e23a4560d27747eefef168cf8f97553b17?ds=inline;hp=--cc Whoops, shouldn't use autoincrement with a macro; forgot about side effects! --- 322ec5e23a4560d27747eefef168cf8f97553b17 diff --git a/sbr/encode_rfc2047.c b/sbr/encode_rfc2047.c index e1a47855..ac2b6dc3 100644 --- a/sbr/encode_rfc2047.c +++ b/sbr/encode_rfc2047.c @@ -517,8 +517,8 @@ unfold_header(char **value, int len) * This has the side effect of stripping off the final newline * for the header; we put it back in the encoding routine. */ - while (is_fws(*q++)) - ; + while (is_fws(*q)) + q++; if (*q == '\0') break;