mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
misc.c open_pathfmt caller supplied buffer
Amachronic raised concern about open() blocking causing a static buf to get overwritten in multiple calls its prudent to just have the caller supply the buffer to minimize stack issues later Change-Id: Iae27c7d063adb1a65688f920f6aa5c395fa5694a
This commit is contained in:
parent
80b8b13544
commit
3745c813f9
9 changed files with 34 additions and 27 deletions
|
@ -122,7 +122,7 @@ extern int show_logo(void);
|
|||
#define BOM_UTF_16_SIZE 2
|
||||
|
||||
int split_string(char *str, const char needle, char *vector[], int vector_length);
|
||||
int open_pathfmt(int oflag, const char *pathfmt, ...);
|
||||
int open_pathfmt(char *buf, size_t size, int oflag, const char *pathfmt, ...);
|
||||
int open_utf8(const char* pathname, int flags);
|
||||
int string_option(const char *option, const char *const oplist[], bool ignore_case);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue