0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Killed bug in processing of 'h' prefix. Patch taken from linux-2.1.129.

This commit is contained in:
Martin Mares 1998-11-21 10:25:34 +00:00
parent 9158ca99f7
commit 4254dc45e7

View File

@ -289,10 +289,9 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args)
if (qualifier == 'l')
num = va_arg(args, unsigned long);
else if (qualifier == 'h') {
num = (unsigned short) va_arg(args, int);
if (flags & SIGN)
num = va_arg(args, short);
else
num = va_arg(args, unsigned short);
num = (short) num;
} else if (flags & SIGN)
num = va_arg(args, int);
else