]> Pileus Git - ~andy/fetchmail/blobdiff - getpass.c
Initial revision
[~andy/fetchmail] / getpass.c
index e67ba670168e9147ecb38abba80ffa111f699dbb..447a8f0cb585ad906dbe0824af2b5eb65db7c4b5 100644 (file)
--- a/getpass.c
+++ b/getpass.c
 #if defined(HAVE_UNISTD_H)
 #include <unistd.h>
 #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 <termios.h>
@@ -185,6 +186,5 @@ restore_tty_state()
 RETSIGTYPE sigint_handler ()
 {
   restore_tty_state();
-  fputs("\nCaught signal... bailing out.\n", stderr);
-  exit(1);
+  error(1, 0, "\nCaught signal... bailing out.");
 }