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/vseprint.c | |
| parent | 7d5a2526f46cd3474fb96a684f7b87e9e78128b0 (diff) | |
20070608-1149
Diffstat (limited to 'lib9/vseprint.c')
| -rw-r--r-- | lib9/vseprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib9/vseprint.c b/lib9/vseprint.c index 6f478960..b9675b35 100644 --- a/lib9/vseprint.c +++ b/lib9/vseprint.c @@ -27,8 +27,9 @@ vseprint(char *buf, char *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); *(char*)f.to = '\0'; return f.to; } |
