summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-17 14:11:14 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-17 14:11:14 +0800
commitcf5382bafe331ed7c8e24edc9792942aa127bc8f (patch)
treeebfa56403e07665850c4c06dd03ced7af3ea6754 /mbbsd/edit.c
parent01616d0056baf868477b8a0f2d477c8359054e2a (diff)
downloadpttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar.gz
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar.bz2
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar.lz
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar.xz
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.tar.zst
pttbbs-cf5382bafe331ed7c8e24edc9792942aa127bc8f.zip
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c5
1 files changed, 4 insertions, 1 deletions
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