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

21 lines
506 B
Plaintext

$OpenBSD: patch-fmtprint_c,v 1.1 2004/02/29 19:07:34 pvalchev Exp $
--- fmtprint.c.orig 2003-02-13 08:04:39.000000000 -0700
+++ fmtprint.c 2004-02-28 13:09:00.000000000 -0700
@@ -32,14 +32,14 @@ fmtprint(Fmt *f, char *fmt, ...)
f->flags = 0;
f->width = 0;
f->prec = 0;
- va = f->args;
+ va_copy(va, f->args);
va_start(f->args, fmt);
n = dofmt(f, fmt);
va_end(f->args);
f->flags = 0;
f->width = 0;
f->prec = 0;
- f->args = va;
+ va_copy(f->args, va);
if(n >= 0)
return 0;
return n;