Mercurial > hg > sidinfo
changeset 244:1beaad0d5219
Ensure that the specified HVSC path has '/' path separator at the end.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2020 22:58:42 +0200 |
parents | a3dd87b7c00b |
children | 6cb01bf6c8c8 |
files | sidinfo.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sidinfo.c Sat Jan 04 22:57:39 2020 +0200 +++ b/sidinfo.c Sat Jan 04 22:58:42 2020 +0200 @@ -1279,6 +1279,10 @@ // Check if HVSC path is set if (setHVSCPath != NULL) { + // Check path separator at end + if (th_strrcasecmp(setHVSCPath, "/") == NULL) + th_pstr_printf(&setHVSCPath, "%s/", setHVSCPath); + // If SLDB path is not set, autocheck for .md5 and .txt if (setSLDBPath == NULL) setSLDBPath = siCheckHVSCFilePath(SET_SLDB_FILEBASE, ".md5");