1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

r17884: Shape up the snprintf fix after Metzes comments

(This used to be commit 66b6456eee579623b64c649356ab0175c46f5789)
This commit is contained in:
Volker Lendecke 2006-08-28 14:38:47 +00:00 committed by Gerald (Jerry) Carter
parent 200619b368
commit 6f7dd6ca07

View File

@ -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;