summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index a54ae6f..cc275f0 100644
--- a/src/common.c
+++ b/src/common.c
@@ -444,7 +444,7 @@ char *get_temp_filename(const char *prefix)
}
lp = strlen(prefix);
result = malloc(lt + lp + 8);
- strncpy(result, tmpdir, lt);
+ memcpy(result, tmpdir, lt);
#ifdef WIN32
if (tmpdir[lt-1] != '/' && tmpdir[lt-1] != '\\') result[lt++] = '\\';
#else