diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-15 21:24:07 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-15 21:24:07 +0800 |
commit | 7edce5f16e016665ada2d55aa5528ea947907fab (patch) | |
tree | 3d8d791de7d4358d82c0485debeb98b82878b5a8 /mbbsd/more.c | |
parent | 4e2113e512a86cf56cba11062de13cc6b496ab50 (diff) | |
download | pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar.gz pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar.bz2 pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar.lz pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar.xz pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.tar.zst pttbbs-7edce5f16e016665ada2d55aa5528ea947907fab.zip |
- fix crash for mail->'c'->man->D.
- fix crash on Ctrl-T (buffer overflow).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3999 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index 7187162d..d506754a 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -43,7 +43,7 @@ int more(char *fpath, int promptend) r = FULLUPDATE; if (HasUserPerm(PERM_BASIC)) { - char buf[10]; + char buf[PATHLEN]; getdata(b_lines - 1, 0, "把這篇文章收入到暫存檔?[y/N] ", buf, 4, LCECHO); if (buf[0] != 'y') |