From 6e8fb49d05e9ca063956f26db075ae08fd8f6efd Mon Sep 17 00:00:00 2001 From: q3cpma Date: Fri, 1 Dec 2017 00:17:50 +0100 Subject: [PATCH] Whoops --- gfx/common/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index 5189cb3792..1375fd1186 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -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 {