From 877338f18cc417124ca7b00de0bc5d8e8a8e608b Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Mon, 14 Mar 2016 16:45:22 +0300 Subject: pam-ck allow VTNR to be double-digit --- pam-ck-connector/pam-ck-connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pam-ck-connector') diff --git a/pam-ck-connector/pam-ck-connector.c b/pam-ck-connector/pam-ck-connector.c index 7ac2bcf..916b22b 100644 --- a/pam-ck-connector/pam-ck-connector.c +++ b/pam-ck-connector/pam-ck-connector.c @@ -342,7 +342,7 @@ pam_sm_open_session (pam_handle_t *pamh, ck_pam_syslog (pamh, LOG_INFO, "using '%s' as X11 display device (from CKCON_X11_DISPLAY_DEVICE)", x11_display_device); } } else if ((s = pam_getenv (pamh, "XDG_VTNR")) != NULL) { - int len = strlen (s) + 9; /* room for "/dev/ttyX\0" */ + int len = strlen (s) + 10; /* room for "/dev/ttyXX\0" */ xdd = malloc (len); snprintf (xdd, len, "/dev/tty%s", s); x11_display_device = xdd; -- cgit v1.2.3