mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
test
This commit is contained in:
parent
ce43fad645
commit
0b72e68c79
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ device_read_info(socket_t device_socket, char *device_name, struct size *size) {
|
|||
LOGE("Could not retrieve device information");
|
||||
return false;
|
||||
}
|
||||
// in case the client sends garbage
|
||||
// in case the client sends garbage!
|
||||
buf[DEVICE_NAME_FIELD_LENGTH - 1] = '\0';
|
||||
// strcpy is safe here, since name contains at least
|
||||
// DEVICE_NAME_FIELD_LENGTH bytes and strlen(buf) < DEVICE_NAME_FIELD_LENGTH
|
||||
|
|
Loading…
Add table
Reference in a new issue