Permalink
Browse files

Merge pull request #2617 from ulion/fix_findword_deadloop

StringUtils::FindWords fix dead loop (introduced by PR #2536)
  • Loading branch information...
2 parents 95e2d6d + a92f89c commit 3c7f72cdd4a4b2467077cb16371c4ac224664c84 @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 3c7f72c

Please sign in to comment.