summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-07-06 01:30:41 +0000
committerTim Potter <tpot@samba.org>2000-07-06 01:30:41 +0000
commit8a72991abb2cab239983d68445fc1caa42c914cc (patch)
tree1eed8ea7dd846d755e9922bb495b52565daced0f /source3
parente7b5aba7f14b3fa20c1890b11a8529aa8c87722c (diff)
downloadsamba-8a72991abb2cab239983d68445fc1caa42c914cc.tar.gz
samba-8a72991abb2cab239983d68445fc1caa42c914cc.tar.bz2
samba-8a72991abb2cab239983d68445fc1caa42c914cc.zip
Bracked unbracketed macro arguments while looking for another bug.
(This used to be commit 873774e36dfc877727133a86fbc2c2ddc2d563cd)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c
index 70ce95916f..18ef848c5a 100644
--- a/source3/lib/snprintf.c
+++ b/source3/lib/snprintf.c
@@ -139,8 +139,8 @@ static void dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c );
#define DP_C_LDOUBLE 3
#define DP_C_LLONG 4
-#define char_to_int(p) (p - '0')
-#define MAX(p,q) ((p >= q) ? p : q)
+#define char_to_int(p) ((p)- '0')
+#define MAX(p,q) (((p) >= (q)) ? (p) : (q))
static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
{