From a3b37ce828a5d6ec07f621b367c46f21c6df58e9 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 13 Jun 2009 13:17:25 +0000 Subject: * 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 --- mbbsd/edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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; -- cgit v1.2.3