[FIX] Fix allocation mistake

This commit is contained in:
lda 2024-05-25 19:41:15 +02:00
parent 102ea9409d
commit de24e5f436

View file

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