diff options
Diffstat (limited to 'alpine/osdep')
-rw-r--r-- | alpine/osdep/termout.wnt.c | 8 | ||||
-rw-r--r-- | alpine/osdep/termout.wnt.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/alpine/osdep/termout.wnt.c b/alpine/osdep/termout.wnt.c index 778890b7..95dec41b 100644 --- a/alpine/osdep/termout.wnt.c +++ b/alpine/osdep/termout.wnt.c @@ -737,7 +737,7 @@ os_argsdialog (char **arg_text) */ int os_login_dialog (NETMBX *mb, char *user_utf8, int userlen, - char *pwd_utf8, int pwdlen, int pwc, int fixuser, int *prespass) + char **pwd_utf8, int pwdlen, int pwc, int fixuser, int *prespass) { DLGPROC dlgprc; HINSTANCE hInst; @@ -760,7 +760,7 @@ os_login_dialog (NETMBX *mb, char *user_utf8, int userlen, dlgpw.userlen = userlen; dlgpw.pwd = (LPTSTR)fs_get(pwdlen*sizeof(TCHAR)); - pwd_lptstr = utf8_to_lptstr(pwd_utf8); + pwd_lptstr = utf8_to_lptstr(*pwd_utf8); _tcsncpy(dlgpw.pwd, pwd_lptstr, pwdlen - 1); dlgpw.pwd[pwdlen - 1] = '\0'; fs_give((void **) &pwd_lptstr); @@ -786,8 +786,8 @@ os_login_dialog (NETMBX *mb, char *user_utf8, int userlen, tpwd_utf8 = lptstr_to_utf8(dlgpw.pwd); if(tpwd_utf8){ - strncpy(pwd_utf8, tpwd_utf8, pwdlen - 1); - pwd_utf8[pwdlen - 1] = '\0'; + strncpy(*pwd_utf8, tpwd_utf8, pwdlen - 1); + (*pwd_utf8)[pwdlen - 1] = '\0'; fs_give((void **) &tpwd_utf8); } if(prespass) diff --git a/alpine/osdep/termout.wnt.h b/alpine/osdep/termout.wnt.h index 7344de6f..1993a6b5 100644 --- a/alpine/osdep/termout.wnt.h +++ b/alpine/osdep/termout.wnt.h @@ -39,7 +39,7 @@ void scroll_setrange(long, long); /* dialog stuff */ int init_install_get_vars(void); int os_argsdialog(char **); -int os_login_dialog(NETMBX *, char *, int, char *, int, int, int, int *); +int os_login_dialog(NETMBX *, char *, int, char **, int, int, int, int *); int os_flagmsgdialog(struct flag_table *); int os_sortdialog(DLG_SORTPARAM *); int os_config_dialog(char *, int, int *, int); |