summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-07-09 10:02:07 -0700
committerlouie <lshprung@yahoo.com>2020-07-09 10:02:07 -0700
commit8caa57886581f2207252a5c084e17d4d9fa5230b (patch)
tree2eec3129ac0aad424bec7a6a807305a73a357e1e
parent33cbd6ed8a3a6cb6c743954a22a0e93d873bc473 (diff)
Small fix in autoAlias
-rw-r--r--read_cfg.c3
-rw-r--r--read_cfg.obin8624 -> 8648 bytes
2 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;
}
diff --git a/read_cfg.o b/read_cfg.o
index f91c404..93bd88d 100644
--- a/read_cfg.o
+++ b/read_cfg.o
Binary files differ