summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/buf.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
committerharti <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
commit2156fca38ee7004b1ed21d28dcdbdbb4e3f82048 (patch)
treebee604cbfa383ff600447e709fd86e62b28f5135 /usr.bin/make/buf.c
parent41fdfcd45f1625cf137b07e507748affb1adc408 (diff)
downloadFreeBSD-src-2156fca38ee7004b1ed21d28dcdbdbb4e3f82048.zip
FreeBSD-src-2156fca38ee7004b1ed21d28dcdbdbb4e3f82048.tar.gz
Put macro arguments in paranthesis.
Submitted by: johan
Diffstat (limited to 'usr.bin/make/buf.c')
-rw-r--r--usr.bin/make/buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c
index 190b2aa..b4bf449 100644
--- a/usr.bin/make/buf.c
+++ b/usr.bin/make/buf.c
@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$");
* buffer in case it holds a string.
*/
#define BufExpand(bp, nb) do { \
- if (bp->left < (nb) + 1) { \
+ if ((bp)->left < (nb) + 1) { \
int newSize = (bp)->size + max((nb) + 1, BUF_ADD_INC); \
Byte *newBuf = erealloc((bp)->buffer, newSize); \
\
OpenPOWER on IntegriCloud