summaryrefslogtreecommitdiff
path: root/lib9/runevseprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9/runevseprint.c')
-rw-r--r--lib9/runevseprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib9/runevseprint.c b/lib9/runevseprint.c
index 46fdee60..2432b581 100644
--- a/lib9/runevseprint.c
+++ b/lib9/runevseprint.c
@@ -14,8 +14,9 @@ runevseprint(Rune *buf, Rune *e, char *fmt, va_list args)
f.flush = nil;
f.farg = nil;
f.nfmt = 0;
- f.args = args;
+ va_copy(f.args, args);
dofmt(&f, fmt);
+ va_end(f.args);
*(Rune*)f.to = '\0';
return f.to;
}