Commit 4254dc45 authored by Martin Mareš's avatar Martin Mareš
Browse files

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

parent 9158ca99
...@@ -289,10 +289,9 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args) ...@@ -289,10 +289,9 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args)
if (qualifier == 'l') if (qualifier == 'l')
num = va_arg(args, unsigned long); num = va_arg(args, unsigned long);
else if (qualifier == 'h') { else if (qualifier == 'h') {
num = (unsigned short) va_arg(args, int);
if (flags & SIGN) if (flags & SIGN)
num = va_arg(args, short); num = (short) num;
else
num = va_arg(args, unsigned short);
} else if (flags & SIGN) } else if (flags & SIGN)
num = va_arg(args, int); num = va_arg(args, int);
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment