mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
r17906: Port the snprintf bugfix from 4. I wonder why we never hit this....
(This used to be commit b9227bde1328c09c61cc23fdbb4fa756e919c4a6)
This commit is contained in:
parent
364cb7f71a
commit
b9b8967ff9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user