diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 21:17:25 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 21:17:25 +0800 |
commit | a3b37ce828a5d6ec07f621b367c46f21c6df58e9 (patch) | |
tree | f6d01e54fe4f0d040c204e75f54380d8c5d7a3c5 /mbbsd | |
parent | b65cc51f53c0afc171bdfb10d27e58f69cdae60d (diff) | |
download | pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar.gz pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar.bz2 pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar.lz pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar.xz pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.tar.zst pttbbs-a3b37ce828a5d6ec07f621b367c46f21c6df58e9.zip |
* fix tmp buf behavior changed in 4585: use user's last choice as default
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4595 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 50facfb1..78db76c4 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1093,7 +1093,8 @@ ask_tmpbuf(int y) msg[19] = fp_buf[4]; do { - getdata(y, 0, msg, choice, sizeof(choice), DOECHO); + if (!getdata(y, 0, msg, choice, sizeof(choice), DOECHO)) + choice[0] = fp_buf[4]; } while (choice[0] < '0' || choice[0] > '9'); fp_buf[4] = choice[0]; return fp_buf; |