1 The buffer must be at least _POSIX_PATH_MAX in size - ttyname_r(3C)
3 diff -ur gpgme-1.13.1-1/src/engine-assuan.c gpgme-1.13.1/src/engine-assuan.c
4 --- gpgme-1.13.1-1/src/engine-assuan.c 2019-12-21 11:18:22.704167504 +0000
5 +++ gpgme-1.13.1/src/engine-assuan.c 2019-12-21 11:21:44.062848391 +0000
15 if (llass->opt.gpg_agent && (isatty (1) || env_tty || err))
18 - char dft_ttyname[64];
19 + char dft_ttyname[_POSIX_PATH_MAX];
20 char *dft_ttytype = NULL;
23 diff -ur gpgme-1.13.1-1/src/engine-g13.c gpgme-1.13.1/src/engine-g13.c
24 --- gpgme-1.13.1-1/src/engine-g13.c 2019-12-21 11:18:22.701001484 +0000
25 +++ gpgme-1.13.1/src/engine-g13.c 2019-12-21 11:20:04.796406704 +0000
28 #include <fcntl.h> /* FIXME */
37 char *dft_display = NULL;
38 - char dft_ttyname[64];
39 + char dft_ttyname[_POSIX_PATH_MAX];
41 char *dft_ttytype = NULL;
43 diff -ur gpgme-1.13.1-1/src/engine-gpg.c gpgme-1.13.1/src/engine-gpg.c
44 --- gpgme-1.13.1-1/src/engine-gpg.c 2019-12-21 11:18:22.706600650 +0000
45 +++ gpgme-1.13.1/src/engine-gpg.c 2019-12-21 11:21:04.738476348 +0000
57 char *dft_display = NULL;
58 - char dft_ttyname[64];
59 + char dft_ttyname[_POSIX_PATH_MAX];
60 char *dft_ttytype = NULL;
63 diff -ur gpgme-1.13.1-1/src/engine-gpgsm.c gpgme-1.13.1/src/engine-gpgsm.c
64 --- gpgme-1.13.1-1/src/engine-gpgsm.c 2019-12-21 11:18:22.708151679 +0000
65 +++ gpgme-1.13.1/src/engine-gpgsm.c 2019-12-21 11:20:36.018909932 +0000
71 #include <fcntl.h> /* FIXME */
77 char *dft_display = NULL;
78 - char dft_ttyname[64];
79 + char dft_ttyname[_POSIX_PATH_MAX];
81 char *dft_ttytype = NULL;
83 diff -ur gpgme-1.13.1-1/src/engine-uiserver.c gpgme-1.13.1/src/engine-uiserver.c
84 --- gpgme-1.13.1-1/src/engine-uiserver.c 2019-12-21 11:18:22.703862196 +0000
85 +++ gpgme-1.13.1/src/engine-uiserver.c 2019-12-21 11:22:07.166004600 +0000
92 #include <fcntl.h> /* FIXME */
95 gpgme_error_t err = 0;
96 engine_uiserver_t uiserver;
97 char *dft_display = NULL;
98 - char dft_ttyname[64];
99 + char dft_ttyname[_POSIX_PATH_MAX];
100 char *env_tty = NULL;
101 char *dft_ttytype = NULL;