Added MAX_PASSWORD_SIZE set to 64

fixes #245
This commit is contained in:
James Booth
2013-11-07 22:15:43 +00:00
parent 1248f49cfa
commit 99d3322834
3 changed files with 5 additions and 2 deletions

View File

@@ -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();