diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-06-08 10:51:11 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-06-08 10:51:11 +0000 |
| commit | 1f44c82a26ff60e012a2ff697cb036a25c0c7f97 (patch) | |
| tree | 73cb74c31ef90c5ee906bbdf9040f8e9d8ebbb20 /lib9/runevseprint.c | |
| parent | 7d5a2526f46cd3474fb96a684f7b87e9e78128b0 (diff) | |
20070608-1149
Diffstat (limited to 'lib9/runevseprint.c')
| -rw-r--r-- | lib9/runevseprint.c | 3 |
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; } |
