summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 21:46:13 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 22:09:46 -0500
commit3745c813f924b12232c4f37610aecd23fe5654b8 (patch)
tree41069cc3f39c61b7d0611877d4251827be6cd2e1 /apps/misc.h
parent80b8b13544c79f57bf7da6320cee5d76c162e96c (diff)
downloadrockbox-3745c813f924b12232c4f37610aecd23fe5654b8.tar.gz
rockbox-3745c813f924b12232c4f37610aecd23fe5654b8.zip
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
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h
index 50191f0e95..f31d4d363c 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -122,7 +122,7 @@ extern int show_logo(void);
122#define BOM_UTF_16_SIZE 2 122#define BOM_UTF_16_SIZE 2
123 123
124int split_string(char *str, const char needle, char *vector[], int vector_length); 124int split_string(char *str, const char needle, char *vector[], int vector_length);
125int open_pathfmt(int oflag, const char *pathfmt, ...); 125int open_pathfmt(char *buf, size_t size, int oflag, const char *pathfmt, ...);
126int open_utf8(const char* pathname, int flags); 126int open_utf8(const char* pathname, int flags);
127int string_option(const char *option, const char *const oplist[], bool ignore_case); 127int string_option(const char *option, const char *const oplist[], bool ignore_case);
128 128