]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 20 Oct 2010 06:03:31 +0000 (00:03 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 20 Oct 2010 06:03:31 +0000 (00:03 -0600)
Protect SQUIDSTRINGPRINT macro argument from merging with macro body parts.

No runtime changes expected.

src/SquidString.h

index c8d33b0314c17f2679138470454e90e4dbbc2853..0c25ab5d6d804ea22328391ae6e523d62b4147e7 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 */