Fix inifinite loop bug.

pull/193/head
Michael R Sweet 19 years ago
parent 45b9200fc6
commit 4e533e861b
  1. 2
      mxmldoc.c

@ -491,7 +491,7 @@ get_comment_info(
get_text(description, text, sizeof(text));
for (ptr = strchr(text, '@'); ptr; ptr = strchr(ptr, '@'))
for (ptr = strchr(text, '@'); ptr; ptr = strchr(ptr + 1, '@'))
{
if (!strncmp(ptr, "@deprecated@", 12))
return ("<span class='info'>&nbsp;DEPRECATED&nbsp;</span>");

Loading…
Cancel
Save