summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/io.c b/src/common/io.c
index e5ea437..a710721 100644
--- a/src/common/io.c
+++ b/src/common/io.c
@@ -367,7 +367,7 @@ int make_tmp_file(const char *prefix, const char *suffix, char **filename)
if (result == 0)
{
if (slen > 0)
- result = mkstemps(*filename, strlen(suffix) + 1);
+ result = mkstemps(*filename, slen + 1);
else
result = mkstemp(*filename);