From cf5382bafe331ed7c8e24edc9792942aa127bc8f Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 17 Jul 2003 06:11:14 +0000 Subject: fix last commit bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 56dc46cf..202157ae 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1,4 +1,4 @@ -/* $Id: edit.c,v 1.38 2003/07/17 04:35:07 victor Exp $ */ +/* $Id: edit.c,v 1.39 2003/07/17 06:11:14 victor Exp $ */ /* edit.c, 用來提供 bbs上的文字編輯器, 即 ve. * 現在這一個是惡搞過的版本, 比較不穩定, 用比較多的 cpu, 但是可以省下許多 * 的記憶體 (以 Ptt為例, 在九千人上站的時候, 約可省下 50MB 的記憶體) @@ -913,6 +913,9 @@ addsignature(FILE * fp, int ifuseanony) msg[34] = ch = isdigit(cuser.signature) ? cuser.signature : 'X'; getdata(0, 0, msg, buf, 4, DOECHO); + if (!buf[0]) + buf[0] = ch; + if (isdigit(buf[0])) ch = buf[0]; else -- cgit v1.2.3