summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-23 04:23:35 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-23 04:23:35 +0800
commitb6701a3629efe257710afa2ffe5234b6dba00d77 (patch)
treee5011c4122abc0faeea6e979255b6a9fb74f7348
parentcbdcdd209e391a99b791a36717c1e288b13e0ca7 (diff)
downloadpttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar.gz
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar.bz2
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar.lz
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar.xz
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.tar.zst
pttbbs-b6701a3629efe257710afa2ffe5234b6dba00d77.zip
code audit
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@963 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/edit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index f9578db0..1197a34d 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/mbbsd/edit.c
@@ -1,4 +1,4 @@
-/* $Id: edit.c,v 1.32 2003/06/19 14:33:09 in2 Exp $ */
+/* $Id: edit.c,v 1.33 2003/06/22 20:23:35 kcwu Exp $ */
#include "bbs.h"
typedef struct textline_t {
struct textline_t *prev;
@@ -1268,9 +1268,10 @@ match_paren()
type = (ptype - parens) / 2;
parenum += ((ptype - parens) % 2) ? -1 : 1;
+ /* FIXME ¤Ó¦h strlen() */
+ /* FIXME CRASH */
if (parenum > 0) {
for (lino = currln, p = currline; p; p = p->next, lino++) {
- lino = lino;
for (i = (lino == currln) ? currpnt + 1 : 0;
(size_t)i < strlen(p->data); i++)
if (p->data[i] == '/' && p->data[++i] == '*') {