summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}