Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
deferred_unlink() - fix wrong allocation, fixes #2814
  • Loading branch information
perexg committed May 2, 2015
1 parent 8dbc38d commit 41bb5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Expand Up @@ -661,7 +661,7 @@ deferred_unlink(const char *filename)
int r;

l = strlen(filename);
s = malloc(l + 9);
s = malloc(l + 9 + 1);
if (s == NULL)
return -ENOMEM;
strcpy(s, filename);
Expand Down

0 comments on commit 41bb5cd

Please sign in to comment.