diff options
author | 2019-12-10 20:23:38 -0800 | |
---|---|---|
committer | 2020-04-12 16:05:01 -0700 | |
commit | fc456a2fa763165453a6a46bbcd030d348b0820b (patch) | |
tree | ce7aa460725da3891409261fa2cb82e8deaca462 /src/ipsw.c | |
parent | f27d19e1c2e69dba271834d0c7a3a5be3a83e275 (diff) | |
download | idevicerestore-fc456a2fa763165453a6a46bbcd030d348b0820b.tar.gz idevicerestore-fc456a2fa763165453a6a46bbcd030d348b0820b.tar.bz2 |
Replace strncpy with memcpy
Fixes compiler warnings.
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -61,9 +61,9 @@ static char* build_path(const char* path, const char* file) if (!fullpath) { return NULL; } - strncpy(fullpath, path, plen); + memcpy(fullpath, path, plen); fullpath[plen] = '/'; - strncpy(fullpath+plen+1, file, flen); + memcpy(fullpath+plen+1, file, flen); fullpath[plen+1+flen] = '\0'; return fullpath; } |