summaryrefslogtreecommitdiffstats
path: root/src/libirecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libirecovery.c')
-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;
}