From: Alex Rousskov Date: Tue, 21 Sep 2010 23:38:13 +0000 (-0600) Subject: Protect SQUIDSTRINGPRINT macro argument from merging with macro body parts. X-Git-Tag: take1~238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b716b3d44e7a0c4f3fb859c46720708007ccfe0c;p=thirdparty%2Fsquid.git Protect SQUIDSTRINGPRINT macro argument from merging with macro body parts. No runtime changes expected. --- diff --git a/src/SquidString.h b/src/SquidString.h index 84674e222f..bf947e2d0d 100644 --- a/src/SquidString.h +++ b/src/SquidString.h @@ -44,7 +44,7 @@ /* squid string placeholder (for printf) */ #ifndef SQUIDSTRINGPH #define SQUIDSTRINGPH "%.*s" -#define SQUIDSTRINGPRINT(s) s.psize(),s.rawBuf() +#define SQUIDSTRINGPRINT(s) (s).psize(),(s).rawBuf() #endif /* SQUIDSTRINGPH */