summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-09 00:57:34 +0100
committerGravatar Nikias Bassen2024-01-09 00:57:34 +0100
commitdd52fcee588518ba0910844579cdb58af13e6bab (patch)
tree08ccac2e76346a9eaf397dc1d66914202cb71aa6
parent29592eb6cae8b25b214aa1e3cfb6ef4a6d555d43 (diff)
downloadlibirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.gz
libirecovery-dd52fcee588518ba0910844579cdb58af13e6bab.tar.bz2
Fix strncpy size
-rw-r--r--src/libirecovery.c2
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;
}