diff options
author | Louie S <louie@example.com> | 2023-09-18 17:13:13 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-18 17:13:13 -0400 |
commit | 485a135c7d71a9dfa274f8280a3a53ea42ad59bf (patch) | |
tree | f5588e91d16f628037f21011459c388e380f8f1d | |
parent | ef819a9b37ee0130bbd4cf4572ca03eef8a0ec3a (diff) |
Fix '/' vs '\' issue on Windows
-rw-r--r-- | src/draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ char *trim_name(char *name, char *path, int max_len){ //group name and path are equivalent: special procedure if(!(strcmp(name, path))){ //find relative path name - relative = strrchr(name, '/'); + relative = strrchr(name, sep); name = relative+1; if(strlen(name) <= max_len) return name; } |