From ffbd9ffba8d6e44e89a3a50665f4608fdf19a434 Mon Sep 17 00:00:00 2001 From: Thomas Arp Date: Mon, 14 Jan 2008 00:47:19 +0000 Subject: [PATCH] updated, non-tested version --- src/util/webster.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/util/webster.c b/src/util/webster.c index f76da32..737e54b 100755 --- a/src/util/webster.c +++ b/src/util/webster.c @@ -76,15 +76,17 @@ void parse_webster_html(char *arg) { strncpy(scanbuf, p, sizeof(scanbuf)); // strtok on a copy. - p = strtok(scanbuf, ">"); // chop the line at the end of tags:
word becomes "
" "" "word" - while (p != NULL) + p = strtok(scanbuf, ">"); // chop the line at the end of tags:
word becomes "", 4) || !strncmp(p, "

", 3) || !strncmp(p, "

", 24) || !strncmp(p, "
", 25)) + } + if (!strncmp(p, " tag or a
or
tag, ignore it.