diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-02-18 21:18:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-02-18 21:18:38 (GMT) |
commit | 6684d46ce709e0138a601db4223e0ffb3d7f4ff3 (patch) | |
tree | a31f551d74b11e0e66c0b051c9bfdc1c951bc46b | |
parent | cd6b1657ed58ddbb0e5d7f13c1428b19310b90bd (diff) |
Simplified code.
-rw-r--r-- | src/common/io.c | 2 |
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); |