summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-18 17:13:13 -0400
committerLouie S <louie@example.com>2023-09-18 17:13:13 -0400
commit485a135c7d71a9dfa274f8280a3a53ea42ad59bf (patch)
treef5588e91d16f628037f21011459c388e380f8f1d
parentef819a9b37ee0130bbd4cf4572ca03eef8a0ec3a (diff)
Fix '/' vs '\' issue on Windows
-rw-r--r--src/draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/draw.c b/src/draw.c
index 6516f04..2a6e74f 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -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;
}