diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-08-29 18:58:30 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-08-29 18:58:30 -0600 |
commit | f12bfecb345d42bc3b57e76b8f2e71548ceefc16 (patch) | |
tree | 23291d9542a79af1b8eb73e00db7248d94c26e7c /alpine/osdep/termout.wnt.c | |
parent | 116585bd28c0dbe4c4663229eb64755545601e6c (diff) | |
download | alpine-f12bfecb345d42bc3b57e76b8f2e71548ceefc16.tar.xz |
* When a server expires a refresh token, Alpine needs to cancel it
internally.
* Fixes to some prototyping for code related to authentication.
* Fixes to documentation contributed by Dennis Davis.
Diffstat (limited to 'alpine/osdep/termout.wnt.c')
-rw-r--r-- | alpine/osdep/termout.wnt.c | 8 |
1 files changed, 4 insertions, 4 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) |