summaryrefslogtreecommitdiff
path: root/libpam_misc/misc_conv.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-02-24 19:01:11 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2020-02-24 19:01:11 +0100
commitcf0a9e631b838f1e0aca1a5626fdea4d2802cb18 (patch)
treec7770ad6eeae5588165cac1b6ae76561a0ad497c /libpam_misc/misc_conv.c
parenta33d198dd60d34422c706fd85d00b64d43402690 (diff)
misc_conv: Use PAM_MAX_RESP_SIZE to limit the length of the input
Diffstat (limited to 'libpam_misc/misc_conv.c')
-rw-r--r--libpam_misc/misc_conv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c
index be53f343..e29ce59e 100644
--- a/libpam_misc/misc_conv.c
+++ b/libpam_misc/misc_conv.c
@@ -18,7 +18,7 @@
#include <security/pam_appl.h>
#include <security/pam_misc.h>
-#define INPUTSIZE PAM_MAX_MSG_SIZE /* maximum length of input+1 */
+#define INPUTSIZE PAM_MAX_RESP_SIZE /* maximum length of input+1 */
#define CONV_ECHO_ON 1 /* types of echo state */
#define CONV_ECHO_OFF 0