diff options
author | Neel Chauhan <nc@FreeBSD.org> | 2022-01-28 14:51:56 -0800 |
---|---|---|
committer | Neel Chauhan <nc@FreeBSD.org> | 2022-01-31 13:06:19 -0800 |
commit | a69eab30db5aa908c31f17217000bd16a44b2496 (patch) | |
tree | 03e4995b5bec985fc81f946616fb7373fa3e5751 /x11/gdm/files/patch-daemon_gdm-x-session.c | |
parent | devel/pycharm-ce: update 2021.2.2 -> 2021.3.1 (diff) |
x11/gdm: Update to 41.3
Differential Revision: https://reviews.freebsd.org/D34088
Diffstat (limited to 'x11/gdm/files/patch-daemon_gdm-x-session.c')
-rw-r--r-- | x11/gdm/files/patch-daemon_gdm-x-session.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/gdm/files/patch-daemon_gdm-x-session.c b/x11/gdm/files/patch-daemon_gdm-x-session.c new file mode 100644 index 000000000000..5846e278e63e --- /dev/null +++ b/x11/gdm/files/patch-daemon_gdm-x-session.c @@ -0,0 +1,20 @@ +--- daemon/gdm-x-session.c.orig 2022-01-12 14:15:56 UTC ++++ daemon/gdm-x-session.c +@@ -114,7 +114,7 @@ prepare_auth_file (void) + GError *error = NULL; + gboolean prepared = FALSE; + Xauth auth_entry = { 0 }; +- char localhost[HOST_NAME_MAX + 1] = ""; ++ char localhost[256] = ""; + + g_debug ("Preparing auth file for X server"); + +@@ -124,7 +124,7 @@ prepare_auth_file (void) + return NULL; + } + +- if (gethostname (localhost, HOST_NAME_MAX) < 0) { ++ if (gethostname (localhost, 255) < 0) { + strncpy (localhost, "localhost", sizeof (localhost) - 1); + } + |