summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 21:13:44 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 21:13:44 +0800
commit54f79e7cc5079c498fa9d5591c0ae3550a5730aa (patch)
tree7616c16e6710793a86b2b3505300f52c32645c0c
parent2233fc93a52bae18a4e1ad415fee310b9e026160 (diff)
downloadpttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar.gz
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar.bz2
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar.lz
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar.xz
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.tar.zst
pttbbs-54f79e7cc5079c498fa9d5591c0ae3550a5730aa.zip
fix bug: missing string terminate char
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2318 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/gomo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 81ce042a..a7a4fd8e 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -250,6 +250,8 @@ gomo_key(char ku[][BRDSIZ], int fd, int ch, Horder_t * mv)
char pbuf[4], vx, vy;
pbuf[0] = ch;
+ pbuf[1] = '\0';
+
if (fd)
add_io(0, 0);
oldgetdata(17, 0, "直接指定位置 :", pbuf, sizeof(pbuf), DOECHO);