git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
de3e4c5
)
r17884: Shape up the snprintf fix after Metzes comments
author
Volker Lendecke
<vlendec@samba.org>
Mon, 28 Aug 2006 14:38:47 +0000
(14:38 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Mon, 28 Aug 2006 14:38:47 +0000
(14:38 +0000)
source/lib/replace/snprintf.c
patch
|
blob
|
history
diff --git
a/source/lib/replace/snprintf.c
b/source/lib/replace/snprintf.c
index 37ca048b6cebbb3f2bd8fd5249a267c3587008ac..eaa5eec40546093cdce94a5490eaaa95e185e242 100644
(file)
--- a/
source/lib/replace/snprintf.c
+++ b/
source/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)
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
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;
for (i = 1; i < clist[pnum].num; i++) {
clist[pnum].chunks[i]->value = cnk->value;