mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 13:39:58 +00:00
Fix inifinite loop bug.
This commit is contained in:
parent
45b9200fc6
commit
4e533e861b
@ -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'> DEPRECATED </span>");
|
||||
|
Loading…
Reference in New Issue
Block a user