about summary refs log tree commit diff stats
path: root/src/ui/inputwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-11-11 20:51:35 +0000
committerJames Booth <boothj5@gmail.com>2013-11-11 20:51:35 +0000
commit8c97658b8d1f7a10f146e33ca3dc5a7ff2aa3527 (patch)
treebd88eee2f2138e2d1cf5f5b52c7bb27972e0e75e /src/ui/inputwin.c
parent3e86d108a314a067589e32b60d2f6374eae501b6 (diff)
parentc5f76721ce9d10b127d54e127ac34e555c749465 (diff)
downloadprofani-tty-8c97658b8d1f7a10f146e33ca3dc5a7ff2aa3527.tar.gz
Merge branch 'master' into refactor2
Conflicts:
	src/ui/core.c
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r--src/ui/inputwin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index dfcb533d..d5b882d7 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -35,6 +35,7 @@
 
 #include "command/command.h"
 #include "common.h"
+#include "config/accounts.h"
 #include "config/preferences.h"
 #include "config/theme.h"
 #include "log.h"
@@ -207,7 +208,7 @@ inp_get_password(char *passwd)
     _clear_input();
     _inp_win_refresh();
     noecho();
-    mvwgetnstr(inp_win, 0, 1, passwd, 20);
+    mvwgetnstr(inp_win, 0, 1, passwd, MAX_PASSWORD_SIZE);
     wmove(inp_win, 0, 0);
     echo();
     status_bar_clear();