]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Protect SQUIDSTRINGPRINT macro argument from merging with macro body parts.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 21 Sep 2010 23:38:13 +0000 (17:38 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 21 Sep 2010 23:38:13 +0000 (17:38 -0600)
No runtime changes expected.

src/SquidString.h

index 84674e222fa739bf362933c63d280300b6e52a71..bf947e2d0d77f54c5c2808248830aa4eb4010787 100644 (file)
@@ -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 */