diff options
-rw-r--r-- | source3/lib/snprintf.c | 4 |
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) { |