Merge pull request #5835 from Q3CPMA/master

Really fixes HOST_NAME_MAX usage this time
This commit is contained in:
Twinaphex 2017-12-01 01:31:11 +01:00 committed by GitHub
commit f48460b114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ static void x11_set_window_pid(Display *dpy, Window win)
if((hostname = malloc(scret + 1)) == NULL)
return;
if(gethostname(hostname, HOST_NAME_MAX + 1) == -1)
if(gethostname(hostname, scret + 1) == -1)
RARCH_WARN("Failed to get hostname.\n");
else
{