mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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];
|
static char buf[MAX_PATH];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
va_start(ap, pathfmt);
|
||||||
vsnprintf(buf, sizeof(buf), pathfmt, ap);
|
vsnprintf(buf, sizeof(buf), pathfmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
return open(buf, oflag, 0666);
|
return open(buf, oflag, 0666);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue