diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-26 14:35:16 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-26 14:35:16 +0800 |
commit | 5813df022c5ad24bc6f2d149884b035f6ba55721 (patch) | |
tree | 283d5ce092c0072fe19b72f6ffadc17c3c6b5622 /mbbsd/stuff.c | |
parent | 0e1c81d4038faf0b4249899f56d1ead86ffd216f (diff) | |
download | pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar.gz pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar.bz2 pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar.lz pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar.xz pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.tar.zst pttbbs-5813df022c5ad24bc6f2d149884b035f6ba55721.zip |
Ptt_prints prototype changed, length of input string should be given
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3459 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 088e3e56..3169721a 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -715,7 +715,7 @@ show_file(const char *filename, int y, int lines, int mode) clrtoline(lines + y); if ((fp = fopen(filename, "r"))) { while (fgets(buf, sizeof(buf), fp) && lines--) - outs(Ptt_prints(buf, mode)); + outs(Ptt_prints(buf, sizeof(buf), mode)); fclose(fp); } else return 0; |