diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-26 13:51:53 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-26 13:51:53 +0000 |
commit | 7e74b0e98ce5feca153d6580166a2c1e0b0aad02 (patch) | |
tree | 4ceb9c53117f674941b77598a4481133d5276a55 | |
parent | 93ac668bf71fd1bd008c6dce7736ac19ddbbe19d (diff) | |
download | FreeBSD-src-7e74b0e98ce5feca153d6580166a2c1e0b0aad02.zip FreeBSD-src-7e74b0e98ce5feca153d6580166a2c1e0b0aad02.tar.gz |
Fix a obsecure coredump while testing with tmpfs on amd64.
Approved by: re (kensmith)
-rw-r--r-- | tools/regression/fsx/fsx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/regression/fsx/fsx.c b/tools/regression/fsx/fsx.c index 316185d..7da745b 100644 --- a/tools/regression/fsx/fsx.c +++ b/tools/regression/fsx/fsx.c @@ -164,9 +164,13 @@ prt(char *fmt, ...) va_start(args, fmt); vfprintf(stdout, fmt, args); - if (fsxlogf) - vfprintf(fsxlogf, fmt, args); va_end(args); + + if (fsxlogf) { + va_start(args, fmt); + vfprintf(fsxlogf, fmt, args); + va_end(args); + } } void |