22 lines
661 B
Plaintext
22 lines
661 B
Plaintext
$OpenBSD: patch-print_c,v 1.2 2004/03/14 21:37:39 pvalchev Exp $
|
|
--- print.c.orig 1997-04-11 14:54:36.000000000 -0600
|
|
+++ print.c 2004-03-14 14:36:09.000000000 -0700
|
|
@@ -89,8 +89,6 @@ static void intconv(Format *format, unsi
|
|
flags = format->flags;
|
|
if (flags & FMT_long)
|
|
n = va_arg(format->args, long);
|
|
- else if (flags & FMT_short)
|
|
- n = va_arg(format->args, short);
|
|
else
|
|
n = va_arg(format->args, int);
|
|
|
|
@@ -279,7 +277,7 @@ extern int fmtprint VARARGS2(Format *, f
|
|
VA_START(format->args, fmt);
|
|
n += printfmt(format, fmt);
|
|
va_end(format->args);
|
|
- format->args = saveargs;
|
|
+ va_copy(format->args, saveargs);
|
|
|
|
return n + format->flushed;
|
|
}
|