summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c
index 2c09f88852..9deb1a0c65 100644
--- a/apps/gui/icon.c
+++ b/apps/gui/icon.c
@@ -182,7 +182,9 @@ static void load_icons(const char* filename, enum Iconset iconset,
182 ic->handle = 0; 182 ic->handle = 0;
183 if (filename[0] && filename[0] != '-') 183 if (filename[0] && filename[0] != '-')
184 { 184 {
185 fd = open_pathfmt(O_RDONLY, ICON_DIR "/%s.bmp", filename); 185 char fname[MAX_PATH];
186 fd = open_pathfmt(fname, sizeof(fname), O_RDONLY,
187 ICON_DIR "/%s.bmp", filename);
186 if (fd < 0) 188 if (fd < 0)
187 return; 189 return;
188 buf_size = read_bmp_fd(fd, &ic->bmp, 0, 190 buf_size = read_bmp_fd(fd, &ic->bmp, 0,