about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-11-07 22:15:43 +0000
committerJames Booth <boothj5@gmail.com>2013-11-07 22:15:43 +0000
commit99d3322834c337bd6de755665acc08472769b5bd (patch)
tree59a68e30159eaea454320360c466e064a1a25e6f /src/command
parent1248f49cfaf9806dfcf40e0d0f6fe854d693d6a3 (diff)
downloadprofani-tty-99d3322834c337bd6de755665acc08472769b5bd.tar.gz
Added MAX_PASSWORD_SIZE set to 64
fixes #245
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 35bcd4f7..296cf38d 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -3530,7 +3530,7 @@ _cmd_xa(gchar **args, struct cmd_help_t help)
 
 static char *
 _ask_password(void) {
-  char *passwd = malloc(sizeof(char) * 21);
+  char *passwd = malloc(sizeof(char) * (MAX_PASSWORD_SIZE + 1));
   status_bar_get_password();
   status_bar_refresh();
   inp_block();