diff options
author | 2024-01-09 00:57:34 +0100 | |
---|---|---|
committer | 2024-01-09 00:57:34 +0100 | |
commit | dd52fcee588518ba0910844579cdb58af13e6bab (patch) | |
tree | 08ccac2e76346a9eaf397dc1d66914202cb71aa6 | |
parent | 29592eb6cae8b25b214aa1e3cfb6ef4a6d555d43 (diff) | |
download | libirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.gz libirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.bz2 |
Fix strncpy size
-rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 5d9d6fa..46566a2 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
@@ -2357,7 +2357,7 @@ static void* _irecv_handle_device_add(void *userdata) | |||
2357 | return NULL; | 2357 | return NULL; |
2358 | } | 2358 | } |
2359 | debug("found device with ECID %016" PRIx64 "\n", (uint64_t)client->device_info.ecid); | 2359 | debug("found device with ECID %016" PRIx64 "\n", (uint64_t)client->device_info.ecid); |
2360 | strncpy(serial_str, client->device_info.serial_string, 256); | 2360 | strncpy(serial_str, client->device_info.serial_string, 255); |
2361 | product_id = client->mode; | 2361 | product_id = client->mode; |
2362 | client_loc.isKIS = 1; | 2362 | client_loc.isKIS = 1; |
2363 | } | 2363 | } |