changeset 251:1e7c2c87e1e0

Oops, missed some lines from previous commit "TH_DIR_SEPARATOR define was renamed to TH_DIR_SEPARATOR_CHR in th-libs."
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 10:54:11 +0200
parents cf8c31ed13ad
children 9e45cb6f12a5
files sidinfo.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Sun Jan 05 10:50:57 2020 +0200
+++ b/sidinfo.c	Sun Jan 05 10:54:11 2020 +0200
@@ -267,8 +267,8 @@
 {
     th_stat_data sdata;
     char *npath = th_strdup_printf("%s%c%s%c%s%s",
-        setHVSCPath, TH_DIR_SEPARATOR,
-        SET_HVSC_DOCUMENTS, TH_DIR_SEPARATOR,
+        setHVSCPath, TH_DIR_SEPARATOR_CHR,
+        SET_HVSC_DOCUMENTS, TH_DIR_SEPARATOR_CHR,
         filebase, fext != NULL ? fext : "");
 
     if (npath != NULL &&
@@ -1278,8 +1278,8 @@
     if (setHVSCPath != NULL)
     {
         // Check path separator at end
-        if (th_strrcasecmp(setHVSCPath, "/") == NULL)
-            th_pstr_printf(&setHVSCPath, "%s/", setHVSCPath);
+        if (th_strrcasecmp(setHVSCPath, TH_DIR_SEPARATOR_STR) == NULL)
+            th_pstr_printf(&setHVSCPath, "%s%c", setHVSCPath, TH_DIR_SEPARATOR_CHR);
 
         // If SLDB path is not set, autocheck for .md5 and .txt
         if (setSLDBPath == NULL)