summaryrefslogtreecommitdiffstats
path: root/captcha.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 /captcha.c
parent712439932ce9ac04fa6354cd4603046232121974 (diff)
downloadmicrobbs-43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec.tar.gz
microbbs-43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec.zip
Replaced print to term_printf. Fixed warning
Diffstat (limited to 'captcha.c')
-rw-r--r--captcha.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/captcha.c b/captcha.c
index ea38d85..93cadde 100644
--- a/captcha.c
+++ b/captcha.c
@@ -9,6 +9,8 @@
int captcha_test1( term_screen *ts)
{
int ret = 0;
+ const int s_size = 2;
+ char s[s_size];
int column=0, row=0;
int c=0;
@@ -20,7 +22,7 @@ int captcha_test1( term_screen *ts)
term_cur_set_r( ts, row/2 );
//just ask question
- printf("Are you bot?(y/n):\n");
+ term_printf( ts, "Are you bot?(y/n):\n");
c = term_getc( ts );
if ( (c == 'n') || ( c == 'N') )
ret = 1;