Permalink
Browse files

StringUtils::FindWords fix dead loop.

  • Loading branch information...
1 parent 340eebf commit a92f89c9122737e0c11a0cc28a1629d66e14538f @ulion ulion committed Apr 15, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/utils/StringUtils.cpp
@@ -587,6 +587,8 @@ size_t StringUtils::FindWords(const char *str, const char *wordLowerCase)
s += l;
while ((l = IsUTF8Letter(s)) > 0) s += l;
}
+ else
+ ++s;
while (*s && *s == ' ') s++;
// and repeat until we're done

0 comments on commit a92f89c

Please sign in to comment.