summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-28 14:38:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:51 -0500
commit6f7dd6ca075f223abe8c7b19b5377321f38b092c (patch)
treed36b35429fd9d62f59d2c3d48b31e8a01454f11d /source4/lib/replace
parent200619b3687e1eb07e87f7d32104effab1920d77 (diff)
downloadsamba-6f7dd6ca075f223abe8c7b19b5377321f38b092c.tar.gz
samba-6f7dd6ca075f223abe8c7b19b5377321f38b092c.tar.bz2
samba-6f7dd6ca075f223abe8c7b19b5377321f38b092c.zip
r17884: Shape up the snprintf fix after Metzes comments
(This used to be commit 66b6456eee579623b64c649356ab0175c46f5789)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/replace/snprintf.c b/source4/lib/replace/snprintf.c
index 37ca048b6c..eaa5eec405 100644
--- a/source4/lib/replace/snprintf.c
+++ b/source4/lib/replace/snprintf.c
@@ -589,11 +589,11 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
if (cnk->cflags == DP_C_SHORT)
cnk->value = va_arg (args, unsigned int);
else if (cnk->cflags == DP_C_LONG)
- cnk->value = (unsigned long)va_arg (args, unsigned long int);
+ cnk->value = (unsigned long int)va_arg (args, unsigned long int);
else if (cnk->cflags == DP_C_LLONG)
cnk->value = (LLONG)va_arg (args, unsigned LLONG);
else
- cnk->value = (unsigned long)va_arg (args, unsigned int);
+ cnk->value = (unsigned int)va_arg (args, unsigned int);
for (i = 1; i < clist[pnum].num; i++) {
clist[pnum].chunks[i]->value = cnk->value;