Skip to content

Commit

Permalink
Add more padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Anurag Aggarwal committed Jul 1, 2020
1 parent 0a236df commit bf41297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/xstdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ xio_path xio_getfilename(const char *basename, const char *extension)
{
size_t pathlength = strlen(basename) + strlen(extension);
static char* name;
name = (char* )malloc(pathlength + 2);
name = (char* )malloc(pathlength + 16); //Extra padding for memory leak fix
int nimage = 0;
struct stat sb;
char *base = xio_fixpath(basename);
Expand Down

0 comments on commit bf41297

Please sign in to comment.