aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/routines.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routines.c b/src/routines.c
index b2cd59f..9d8bf4a 100644
--- a/src/routines.c
+++ b/src/routines.c
@@ -163,8 +163,9 @@ char *get_input(int minlen, int maxlen)
int len;
if(fgets(pass, maxlen + 1, stdin) == NULL) {
+ print_error("Error: %s\n", strerror(errno));
free(pass);
- errprint_ptr(&pass, NULL, "%s\n", strerror(errno));
+ return NULL;
}
len = strlen(pass);