Skip to content

Commit

Permalink
Fix strncpy size
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Jan 8, 2024
1 parent 29592eb commit dd52fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libirecovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ static void* _irecv_handle_device_add(void *userdata)
return NULL;
}
debug("found device with ECID %016" PRIx64 "\n", (uint64_t)client->device_info.ecid);
strncpy(serial_str, client->device_info.serial_string, 256);
strncpy(serial_str, client->device_info.serial_string, 255);
product_id = client->mode;
client_loc.isKIS = 1;
}
Expand Down

0 comments on commit dd52fce

Please sign in to comment.