misc.c open_pathfmt fix yellow
Change-Id: Id844825726654a3a5b19a1672cb66af9aadaed32
This commit is contained in:
parent
e7e20fab1b
commit
da2eaf3bf7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue