diff --git a/src/util/webster.c b/src/util/webster.c index 737e54b..5c3d2f2 100755 --- a/src/util/webster.c +++ b/src/util/webster.c @@ -77,7 +77,8 @@ 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 ""); // skip the rest of this tag. + while (1) { q = outline; @@ -93,7 +94,7 @@ void parse_webster_html(char *arg) { *q++='\0'; fprintf(outfile, "%s", outline); - if (!strncmp(p, "", 8)) + if (!strncmp(p, ""); @@ -104,7 +105,8 @@ 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(NULL, ">"); // skip the rest of this tag. + while (1) { q = outline; @@ -118,7 +120,7 @@ void parse_webster_html(char *arg) { *q++='\0'; fprintf(outfile, "%s", outline); - if (!strncmp(p, "", 8)) + if (!strncmp(p, "");