diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-23 04:23:35 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-23 04:23:35 +0800 |
commit | 38993584f0064443af5e3bbeead69682fc1a07cf (patch) | |
tree | 20a973c9884eb090cd8e08659a79bdbf93ac8499 /mbbsd | |
parent | 429b06b8c2bdc17e14c903619d08f5094467a0e3 (diff) | |
download | pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar.gz pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar.bz2 pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar.lz pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar.xz pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.tar.zst pttbbs-38993584f0064443af5e3bbeead69682fc1a07cf.zip |
code audit
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@963 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index f9578db0..1197a34d 100644 --- a/mbbsd/edit.c +++ b/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] == '*') { |