mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +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");
|
LOGE("Could not retrieve device information");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// in case the client sends garbage
|
// in case the client sends garbage!
|
||||||
buf[DEVICE_NAME_FIELD_LENGTH - 1] = '\0';
|
buf[DEVICE_NAME_FIELD_LENGTH - 1] = '\0';
|
||||||
// strcpy is safe here, since name contains at least
|
// strcpy is safe here, since name contains at least
|
||||||
// DEVICE_NAME_FIELD_LENGTH bytes and strlen(buf) < DEVICE_NAME_FIELD_LENGTH
|
// DEVICE_NAME_FIELD_LENGTH bytes and strlen(buf) < DEVICE_NAME_FIELD_LENGTH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue