summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-29 09:49:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:58 -0500
commitb9b8967ff9f86f0d7485cdac9c457dd47b19d1b1 (patch)
tree63c88c17006fa5f4008a2ff1ca5be21e219035ae /source3/lib
parent364cb7f71a70d037e3a75bd448b030b6db40bfbe (diff)
downloadsamba-b9b8967ff9f86f0d7485cdac9c457dd47b19d1b1.tar.gz
samba-b9b8967ff9f86f0d7485cdac9c457dd47b19d1b1.tar.bz2
samba-b9b8967ff9f86f0d7485cdac9c457dd47b19d1b1.zip
r17906: Port the snprintf bugfix from 4. I wonder why we never hit this....
(This used to be commit b9227bde1328c09c61cc23fdbb4fa756e919c4a6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c
index 8e1a463b77..8ff76ab116 100644
--- a/source3/lib/snprintf.c
+++ b/source3/lib/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 = (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 = (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;