From: Tim Potter Date: Thu, 6 Jul 2000 01:30:41 +0000 (+0000) Subject: Bracked unbracketed macro arguments while looking for another bug. X-Git-Tag: prerelease-2-2-5pre1~3444 X-Git-Url: http://git.samba.org/samba.git/?p=tprouty%2Fsamba.git;a=commitdiff_plain;h=873774e36dfc877727133a86fbc2c2ddc2d563cd Bracked unbracketed macro arguments while looking for another bug. --- diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c index 70ce95916f..18ef848c5a 100644 --- a/source/lib/snprintf.c +++ b/source/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) {