diff options
author | Nikias Bassen | 2024-01-09 00:57:34 +0100 |
---|---|---|
committer | Nikias Bassen | 2024-01-09 00:57:34 +0100 |
commit | dd52fcee588518ba0910844579cdb58af13e6bab (patch) | |
tree | 08ccac2e76346a9eaf397dc1d66914202cb71aa6 /src/libirecovery.c | |
parent | 29592eb6cae8b25b214aa1e3cfb6ef4a6d555d43 (diff) | |
download | libirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.gz libirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.bz2 |
Fix strncpy size
Diffstat (limited to 'src/libirecovery.c')
-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) 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; } |