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/vfprint.c | |
| parent | 7d5a2526f46cd3474fb96a684f7b87e9e78128b0 (diff) | |
20070608-1149
Diffstat (limited to 'lib9/vfprint.c')
| -rw-r--r-- | lib9/vfprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib9/vfprint.c b/lib9/vfprint.c index eeea55d1..cd98bc13 100644 --- a/lib9/vfprint.c +++ b/lib9/vfprint.c @@ -38,8 +38,9 @@ vfprint(int fd, char *fmt, va_list args) int n; fmtfdinit(&f, fd, buf, sizeof(buf)); - f.args = args; + va_copy(f.args, args); n = dofmt(&f, fmt); + va_end(f.args); if(n > 0 && _fmtFdFlush(&f) == 0) return -1; return n; |
