Fix inifinite loop bug.

This commit is contained in:
Michael R Sweet 2005-11-02 20:47:43 +00:00
parent 45b9200fc6
commit 4e533e861b

View File

@ -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>");