From 27df78f1e497a4428533a12aba3fb08d981a06a4 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 22 Jan 2008 13:28:28 +0000 Subject: - stuff: fix show_file auto wrapped for file with length=80 - announce: change announce re-edit to work like board re-editing post - use same file. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3853 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/stuff.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mbbsd/stuff.c') diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 95030ce6..9c0be5ed 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -414,7 +414,10 @@ show_file(const char *filename, int y, int lines, int mode) clrtoln(lines + y); if ((fp = fopen(filename, "r"))) { while (fgets(buf, sizeof(buf), fp) && lines--) + { + move(y++, 0); outs(Ptt_prints(buf, sizeof(buf), mode)); + } fclose(fp); outs(ANSI_RESET); // prevent some broken Welcome file } else -- cgit v1.2.3