mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 12:40:07 +00:00
Merge pull request #5835 from Q3CPMA/master
Really fixes HOST_NAME_MAX usage this time
This commit is contained in:
commit
f48460b114
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user