Merge pull request #6311 from GregorR/netplay-discovery-string-length-bug

Fix bug in string length in strlcpy.
This commit is contained in:
Twinaphex 2018-02-17 09:03:17 +01:00 committed by GitHub
commit f48cce2334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,7 +488,7 @@ static bool netplay_lan_ad_client(void)
strlcpy(host->content, ad_packet_buffer.content,
NETPLAY_HOST_LONGSTR_LEN);
strlcpy(host->frontend, ad_packet_buffer.frontend,
NETPLAY_HOST_LONGSTR_LEN);
NETPLAY_HOST_STR_LEN);
host->content_crc =
atoi(ad_packet_buffer.content_crc);