From 406fb74f8a1d5c1bf9bacf313d475fac8d7632a8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Nov 1996 21:05:44 +0000 Subject: [PATCH] Removed an unnecessary layer of indirection. svn path=/trunk/; revision=495 --- fetchmail.c | 2 +- fetchmail.h | 2 +- getpass.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fetchmail.c b/fetchmail.c index 17fcca56..6c5a4045 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -764,7 +764,7 @@ char *argv[]; printf("fetchmail: about to deliver via MDA %s, args:", visbuf(argv[0])); for (cp = argv+1; *cp; cp++) - printf(" %s(%p)", visbuf(*cp), *cp); + printf(" %s", visbuf(*cp)); putchar('\n'); } diff --git a/fetchmail.h b/fetchmail.h index 9bf6d105..3b0973fc 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -20,7 +20,7 @@ #define MSGBUFSIZE 2048 /* size of message read buffer */ #define HOSTLEN 128 /* max hostname length */ #define USERNAMELEN 32 /* max user-length */ -#define PASSWORDLEN MAX_PASSWORD_LENGTH +#define PASSWORDLEN 64 /* max password length */ #define FOLDERLEN 256 /* max folder name length */ #define DIGESTLEN 33 /* length of MD5 digest */ #define MDALEN 256 /* length of delivery agent command */ diff --git a/getpass.c b/getpass.c index e67ba670..d0606e45 100644 --- a/getpass.c +++ b/getpass.c @@ -17,10 +17,11 @@ #if defined(HAVE_UNISTD_H) #include #endif +#include "fetchmail.h" extern int optind; -#define INPUT_BUF_SIZE MAX_PASSWORD_LENGTH +#define INPUT_BUF_SIZE PASSWORDLEN #if defined(HAVE_TERMIOS_H) && defined(HAVE_TCSETATTR) # include -- 2.43.2