mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
bookmark.c remove some global buffers
refactor to allow removing some of the static buffers Change-Id: Ia3ff6ea28f35634fd8c31b023431ad53bd542085
This commit is contained in:
parent
8b522b8973
commit
780990fe5d
3 changed files with 117 additions and 65 deletions
|
@ -1425,6 +1425,8 @@ int open_pathfmt(char *buf, size_t size, int oflag, const char *pathfmt, ...)
|
|||
va_start(ap, pathfmt);
|
||||
vsnprintf(buf, size, pathfmt, ap);
|
||||
va_end(ap);
|
||||
if ((oflag & O_PATH) == O_PATH)
|
||||
return -1;
|
||||
return open(buf, oflag, 0666);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue