diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2016-03-14 16:45:22 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2016-03-14 16:45:22 +0300 |
commit | 877338f18cc417124ca7b00de0bc5d8e8a8e608b (patch) | |
tree | 0cafb25675214059c80e65b7674024c74227b60e /pam-ck-connector | |
parent | 77be088ad8288a8bbce813229760323011032192 (diff) | |
download | ConsoleKit2-877338f18cc417124ca7b00de0bc5d8e8a8e608b.tar.gz |
pam-ck allow VTNR to be double-digit
Diffstat (limited to 'pam-ck-connector')
-rw-r--r-- | pam-ck-connector/pam-ck-connector.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |