summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-26 11:54:15 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-10-26 11:54:15 +0800
commit9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2 (patch)
tree23e41cb192f0ca9430b22e04208dc15311051fe6 /mbbsd
parentd99452ac0ba4347685b3d6031d7c4cb6b15fa909 (diff)
downloadpttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar.gz
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar.bz2
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar.lz
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar.xz
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.tar.zst
pttbbs-9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2.zip
MAX_EDIT_LINE
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@542 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/edit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 5073d10a..8685dfc5 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1,4 +1,4 @@
-/* $Id: edit.c,v 1.19 2002/09/11 07:16:49 kcwu Exp $ */
+/* $Id: edit.c,v 1.20 2002/10/26 03:54:15 in2 Exp $ */
#include "bbs.h"
typedef struct textline_t {
struct textline_t *prev;
@@ -268,6 +268,12 @@ split(textline_t * line, int pos)
register char *ptr;
int spcs = indent_spcs();
+#ifdef MAX_EDIT_LINE
+ if( totaln == MAX_EDIT_LINE ){
+ vmsg("MAX_EDIT_LINE exceed");
+ return;
+ }
+#endif
totaln++;
p->len = line->len - pos + spcs;