From 8a72991abb2cab239983d68445fc1caa42c914cc Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 6 Jul 2000 01:30:41 +0000 Subject: Bracked unbracketed macro arguments while looking for another bug. (This used to be commit 873774e36dfc877727133a86fbc2c2ddc2d563cd) --- source3/lib/snprintf.c | 4 ++-- 1 file 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) { -- cgit