summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-05 15:21:53 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-05 15:21:53 +0800
commite739dbc353e9733a402dbef8d44985a608679ee4 (patch)
tree44fd6365667b6a68635e76e612f48ae37a44e0a1 /mbbsd/stuff.c
parenta767a371af08be8b48743fe53657645693c81519 (diff)
downloadpttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar.gz
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar.bz2
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar.lz
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar.xz
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.tar.zst
pttbbs-e739dbc353e9733a402dbef8d44985a608679ee4.zip
getans: reduce buffer to reflect its nature
editpost: better hints for user to understand our recovery feature git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3635 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index a11bbd83..4e5fd8cb 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -591,7 +591,7 @@ char
getans(const char *fmt,...)
{
char msg[256];
- char ans[5];
+ char ans[3];
va_list ap;
va_start(ap, fmt);
vsnprintf(msg , 128, fmt, ap);