diff options
author | 2019-12-10 20:23:38 -0800 | |
---|---|---|
committer | 2020-04-12 16:05:01 -0700 | |
commit | fc456a2fa763165453a6a46bbcd030d348b0820b (patch) | |
tree | ce7aa460725da3891409261fa2cb82e8deaca462 /src/common.c | |
parent | f27d19e1c2e69dba271834d0c7a3a5be3a83e275 (diff) | |
download | idevicerestore-fc456a2fa763165453a6a46bbcd030d348b0820b.tar.gz idevicerestore-fc456a2fa763165453a6a46bbcd030d348b0820b.tar.bz2 |
Replace strncpy with memcpy
Fixes compiler warnings.
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 2 |
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 |