diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-03-31 22:08:55 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-04-01 07:35:53 -0400 |
commit | 1dc22c7241e7a4560bc2ba5e920721df27c39778 (patch) | |
tree | 92005f1c98456b2db0cf78d30df9f0f648f75faf /apps/gui/skin_engine/skin_parser.c | |
parent | 47784a777eca6cae3c4a6643f4bca5338373951f (diff) | |
download | rockbox-1dc22c7241e7a4560bc2ba5e920721df27c39778.tar.gz rockbox-1dc22c7241e7a4560bc2ba5e920721df27c39778.zip |
use path_append for setting directories is several settings
sprintf, strcpy, memccpy can all just go thru path_append
with the added benefit of some path sanitizing too
Change-Id: I33510b56a364b8b3a0b06f2ff14b76491f6e3870
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 4d1526fcbc..9f6f61895a 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -305,7 +305,7 @@ static int get_image_id(int c) | |||
305 | void get_image_filename(const char *start, const char* bmpdir, | 305 | void get_image_filename(const char *start, const char* bmpdir, |
306 | char *buf, int buf_size) | 306 | char *buf, int buf_size) |
307 | { | 307 | { |
308 | snprintf(buf, buf_size, "%s/%s", bmpdir, start); | 308 | path_append(buf, bmpdir, start, buf_size); |
309 | } | 309 | } |
310 | 310 | ||
311 | static int parse_image_display(struct skin_element *element, | 311 | static int parse_image_display(struct skin_element *element, |