From 6684d46ce709e0138a601db4223e0ffb3d7f4ff3 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Tue, 18 Feb 2020 22:18:38 +0100
Subject: Simplified code.

---
 src/common/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 
-- 
cgit v0.11.2-87-g4458