aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-26 02:38:45 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-26 02:38:45 +0000
commitacec5dd26cf180054a5543b83a3e28196d218cc9 (patch)
treed0f47cff3280c0e5b86f21bc6cdd8a5801b3cb79
parent16d991049cf9bf1b425bebcfd4df5b8b6e4b60bb (diff)
downloadfetchmail-acec5dd26cf180054a5543b83a3e28196d218cc9.tar.gz
fetchmail-acec5dd26cf180054a5543b83a3e28196d218cc9.tar.bz2
fetchmail-acec5dd26cf180054a5543b83a3e28196d218cc9.zip
Economize on buffer space.
svn path=/trunk/; revision=155
-rw-r--r--fetchmail.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c
index d6b6ef38..568002bf 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -93,7 +93,7 @@ char **argv;
int mboxfd, st, sargc;
struct hostrec cmd_opts, def_opts;
int parsestatus, implicitmode;
- char *servername, *user, *tmpdir, tmpbuf[256], *sargv[64];
+ char *servername, *user, *tmpdir, tmpbuf[BUFSIZ], *sargv[64];
FILE *tmpfp;
pid_t pid;
@@ -228,12 +228,10 @@ char **argv;
if (!(implicitmode && hostp->skip)
&& !hostp->password[0] && !hostp->rpopid[0])
{
- char prompt[BUFSIZ];
-
- (void) sprintf(prompt, "Enter password for %s@%s: ",
+ (void) sprintf(tmpbuf, "Enter password for %s@%s: ",
hostp->remotename, hostp->servername);
(void) strncpy(hostp->password,
- (char *)getpassword(prompt),PASSWORDLEN-1);
+ (char *)getpassword(tmpbuf),PASSWORDLEN-1);
}
/*