Skip to content

Commit

Permalink
tools/idevicecrashreport: Silence compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Jul 5, 2023
1 parent 8163ca0 commit 6fc41f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/idevicecrashreport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6fc41f5

Please sign in to comment.