diff options
author | Tim Potter <tpot@samba.org> | 2000-07-06 01:30:41 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-07-06 01:30:41 +0000 |
commit | 873774e36dfc877727133a86fbc2c2ddc2d563cd (patch) | |
tree | aa1f84f56f9b47e9cc44eb66ce194cbe6eba78c3 /source/lib/snprintf.c | |
parent | 659e4d88ff9dbf1fa9cd8904470c4a8d02d8674b (diff) | |
download | samba-873774e36dfc877727133a86fbc2c2ddc2d563cd.tar.gz samba-873774e36dfc877727133a86fbc2c2ddc2d563cd.tar.xz samba-873774e36dfc877727133a86fbc2c2ddc2d563cd.zip |
Bracked unbracketed macro arguments while looking for another bug.
Diffstat (limited to 'source/lib/snprintf.c')
-rw-r--r-- | source/lib/snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c index 70ce95916fc..18ef848c5ab 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) { |