13 lines
360 B
Plaintext
13 lines
360 B
Plaintext
$OpenBSD: patch-vsmprint_c,v 1.1 2004/02/29 19:07:34 pvalchev Exp $
|
|
--- vsmprint.c.orig 2003-02-13 08:04:39.000000000 -0700
|
|
+++ vsmprint.c 2004-02-28 13:15:24.000000000 -0700
|
|
@@ -65,7 +65,7 @@ vsmprint(char *fmt, va_list args)
|
|
|
|
if(fmtstrinit(&f) < 0)
|
|
return nil;
|
|
- f.args = args;
|
|
+ va_copy(f.args, args);
|
|
n = dofmt(&f, fmt);
|
|
if(n < 0)
|
|
return nil;
|