diff options
author | Nikias Bassen | 2023-07-05 13:18:22 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-07-05 13:18:22 +0200 |
commit | 6fc41f57fc607df9b07446ca45bdf754225c9bd9 (patch) | |
tree | e034f28f0187a9f5c2428794dfc3d53dffad91c2 /tools | |
parent | 8163ca0c237da92a2c1ab31eae2480d1e76a9d01 (diff) | |
download | libimobiledevice-6fc41f57fc607df9b07446ca45bdf754225c9bd9.tar.gz libimobiledevice-6fc41f57fc607df9b07446ca45bdf754225c9bd9.tar.bz2 |
tools/idevicecrashreport: Silence compiler warning
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicecrashreport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index 484212e..09bd537 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c @@ -163,7 +163,7 @@ static int afc_client_copy_and_remove_crash_reports(afc_client_t afc, const char char* p = strrchr(list[k], '.'); if (p != NULL && !strncmp(p, ".synced", 7)) { /* make sure to strip ".synced" extension as seen on iOS 5 */ - int newlen = strlen(list[k]) - 7; + size_t newlen = p - list[k]; strncpy(((char*)target_filename) + host_directory_length, list[k], newlen); target_filename[host_directory_length + newlen] = '\0'; } else { |