diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include <errno.h> #include <string.h> #include <limits.h> +#include "app.h" #include <SDL3_image/SDL_image.h> #define FILE_NAME_SIZE 300 @@ -45,7 +46,7 @@ void extract_dir_name(const char* filename, char dir_name_buffer[FILE_NAME_SIZE] const char* head = filename; const char* next; - while ((next = strchr(head+1, '/')) != NULL) { + while ((next = strstr(head+1, DIRSEP)) != NULL) { head=next; } |
