openbsd-ports/devel/libfmt/patches/patch-runevseprint_c

13 lines
391 B
Plaintext

$OpenBSD: patch-runevseprint_c,v 1.1 2004/02/29 19:07:34 pvalchev Exp $
--- runevseprint.c.orig 2003-02-13 08:04:39.000000000 -0700
+++ runevseprint.c 2004-02-28 13:12:24.000000000 -0700
@@ -31,7 +31,7 @@ runevseprint(Rune *buf, Rune *e, char *f
f.flush = nil;
f.farg = nil;
f.nfmt = 0;
- f.args = args;
+ va_copy(f.args, args);
dofmt(&f, fmt);
*(Rune*)f.to = '\0';
return f.to;