summaryrefslogtreecommitdiffstats
path: root/user.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-06-22 12:35:37 +0300
committerFreeArtMan <dos21h@gmail.com>2015-06-22 12:35:37 +0300
commit43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec (patch)
treef12c6b3a2e87d4fd58689d94b612b4a7833ea335 /user.c
parent712439932ce9ac04fa6354cd4603046232121974 (diff)
downloadmicrobbs-43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec.tar.gz
microbbs-43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec.zip
Replaced print to term_printf. Fixed warning
Diffstat (limited to 'user.c')
-rw-r--r--user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/user.c b/user.c
index 5e2ef19..1f89f4a 100644
--- a/user.c
+++ b/user.c
@@ -78,6 +78,8 @@ int bbs_login( term_screen *ts )
fret = bbs_login_auth( userdata_dir, username_buf, password_buf );
if ( fret == -1 )
{
+ term_cur_set_r( ts, 0 );
+ term_cur_set_c( ts, 0 );
ERROR("No such user\n"); sleep(3);
} else if ( fret == 0 )
{