fcfec7dec3
compiling with _POSIX_SOURCE set (size_t doesn't get defined). Fix errno. Fix an incorrect va_arg: short gets promoted to int, so use that.
16 lines
514 B
Text
16 lines
514 B
Text
$NetBSD: patch-ao,v 1.1 2006/01/15 19:20:59 joerg Exp $
|
|
|
|
--- windows/vsprintf32.c.orig 2006-01-15 18:59:25.000000000 +0000
|
|
+++ windows/vsprintf32.c
|
|
@@ -264,9 +264,9 @@ wsprintfW(char * buf, LPCWSTR format, ..
|
|
num = va_arg(args, unsigned long);
|
|
else if (qualifier == 'h')
|
|
if (flags & SIGN)
|
|
- num = va_arg(args, short);
|
|
+ num = va_arg(args, int);
|
|
else
|
|
- num = va_arg(args, unsigned short);
|
|
+ num = va_arg(args, unsigned int);
|
|
else if (flags & SIGN)
|
|
num = va_arg(args, int);
|
|
else
|