diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-10-26 11:54:15 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-10-26 11:54:15 +0800 |
commit | 9ff5fd166d3a7fdcec3552e61bc84ba29b5e26c2 (patch) | |
tree | 23e41cb192f0ca9430b22e04208dc15311051fe6 | |
parent | d99452ac0ba4347685b3d6031d7c4cb6b15fa909 (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/edit.c | 8 |
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; |