summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-02-18 21:18:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-02-18 21:18:38 (GMT)
commit6684d46ce709e0138a601db4223e0ffb3d7f4ff3 (patch)
treea31f551d74b11e0e66c0b051c9bfdc1c951bc46b
parentcd6b1657ed58ddbb0e5d7f13c1428b19310b90bd (diff)
Simplified code.
-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);