summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-27 10:46:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:48 -0500
commit1bdf6692092f84aa28fc237a89c14d836b2cde87 (patch)
treefab7398039b79045a6ac46d36e240eaa259ebc06 /source4/lib/replace
parent7917a26fabb7835017a6c3a2780c8425a4a92ffa (diff)
downloadsamba-1bdf6692092f84aa28fc237a89c14d836b2cde87.tar.gz
samba-1bdf6692092f84aa28fc237a89c14d836b2cde87.tar.bz2
samba-1bdf6692092f84aa28fc237a89c14d836b2cde87.zip
r17849: Next round for RPC-SAMBA3-SHARESEC
(This used to be commit e17371b7f970fe4cc91f8034c18292cc3c22f161)
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 4b64e53148..37ca048b6c 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 = (long)va_arg (args, unsigned long int);
+ cnk->value = (unsigned long)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 long)va_arg (args, unsigned int);
for (i = 1; i < clist[pnum].num; i++) {
clist[pnum].chunks[i]->value = cnk->value;