Fix inconsistent sanitation with the database #32

Merged
jordan merged 2 commits from lda/Cytoplasm:fix-sanitation into master 2024-05-26 20:31:15 +00:00
Showing only changes of commit de24e5f436 - Show all commits

View file

@ -240,7 +240,7 @@ DbDirName(Db * db, Array * args, size_t strip)
for (i = 0; i < ArraySize(args) - strip; i++) for (i = 0; i < ArraySize(args) - strip; i++)
{ {
char *tmp; char *tmp;
char *sanitise = ArrayGet(args, i); char *sanitise = StrDuplicate(ArrayGet(args, i));
for (j = 0; j < strlen(sanitise); j++) for (j = 0; j < strlen(sanitise); j++)
{ {
sanitise[j] = DbSanitiseChar(sanitise[j]); sanitise[j] = DbSanitiseChar(sanitise[j]);