git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659e4d8
)
Bracked unbracketed macro arguments while looking for another bug.
author
Tim Potter
<tpot@samba.org>
Thu, 6 Jul 2000 01:30:41 +0000
(
01:30
+0000)
committer
Tim Potter
<tpot@samba.org>
Thu, 6 Jul 2000 01:30:41 +0000
(
01:30
+0000)
source/lib/snprintf.c
patch
|
blob
|
history
diff --git
a/source/lib/snprintf.c
b/source/lib/snprintf.c
index 70ce95916fc41a662435a959899008a53d6259b2..18ef848c5ab6c126aff17837c26199374920181e 100644
(file)
--- 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)
{