Skip to content

Commit

Permalink
Merge pull request #11 from plepers/mktmp_fix
Browse files Browse the repository at this point in the history
wrong tmp_path alloc size, not uniq temp file
  • Loading branch information
80prozent committed Jan 10, 2015
2 parents b89e14b + cccceb7 commit b273642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-libawd/src/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ awdutil_mktmp(char **path)
else fd = -1;

#else
tpl_len = strlen(TMPFILE_TEMPLATE);
tpl_len = strlen(TMPFILE_TEMPLATE) + 1;
tmp_path = (char *)malloc(tpl_len);
strncpy_s(tmp_path, tpl_len, TMPFILE_TEMPLATE, tpl_len);

Expand Down

0 comments on commit b273642

Please sign in to comment.