forked from Telodendria/Cytoplasm
[FIX] Fix allocation mistake
This commit is contained in:
parent
102ea9409d
commit
de24e5f436
1 changed files with 1 additions and 1 deletions
2
src/Db.c
2
src/Db.c
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue