summaryrefslogtreecommitdiffstats
path: root/motd.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-01-24 19:43:28 +0900
committerFreeArtMan <dos21h@gmail.com>2015-01-24 19:43:28 +0900
commit3090282601248d3ce5f91cbddeb450d744b27472 (patch)
tree30125025d0bb370b886700548e5be25ba0fa0d62 /motd.c
parentc49166a323b9a1bb777e949c0bcbedc7eceab3cd (diff)
downloadmicrobbs-3090282601248d3ce5f91cbddeb450d744b27472.tar.gz
microbbs-3090282601248d3ce5f91cbddeb450d744b27472.zip
Fixed bug with drawing last line in motd. New motd
Diffstat (limited to 'motd.c')
-rw-r--r--motd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/motd.c b/motd.c
index 359834b..df26f11 100644
--- a/motd.c
+++ b/motd.c
@@ -8,7 +8,7 @@ int bbs_motd_draw( term_screen *ts, const char *fname )
{
int posc=0, posr=0;
int ret=0;
- const int buf_size=80*25+1;
+ const int buf_size=80*26+1;
char buf[buf_size];
int x=0,y=0;
int row=0,column=0;
@@ -48,6 +48,7 @@ int bbs_motd_draw( term_screen *ts, const char *fname )
}
i++;
}
+ fflush( stdout );
}
}