summaryrefslogtreecommitdiff
path: root/read_cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'read_cfg.c')
-rw-r--r--read_cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read_cfg.c b/read_cfg.c
index 5cd63aa..111a79b 100644
--- a/read_cfg.c
+++ b/read_cfg.c
@@ -285,7 +285,8 @@ char *autoAlias(char *path){
}
//close the name
- *p = '\0';
+ if(*path == '"') *(p-1) = '\0'; //close early to avoid including closing quote
+ else *p = '\0';
return hr_name;
}