Skip to content

Commit dd52fce

Browse files
committed
Fix strncpy size
1 parent 29592eb commit dd52fce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libirecovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ static void* _irecv_handle_device_add(void *userdata)
23572357
return NULL;
23582358
}
23592359
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);
23612361
product_id = client->mode;
23622362
client_loc.isKIS = 1;
23632363
}

0 commit comments

Comments
 (0)