summaryrefslogtreecommitdiffstats
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 66d1c272ae..e2913d53b3 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1423,6 +1423,7 @@ int open_pathfmt(int oflag, const char *pathfmt, ...)
{
static char buf[MAX_PATH];
va_list ap;
+ va_start(ap, pathfmt);
vsnprintf(buf, sizeof(buf), pathfmt, ap);
va_end(ap);
return open(buf, oflag, 0666);