From 01be22c7d033a3dfc508528e5372a19631d56266 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 17 Jul 2013 20:14:38 +1000 Subject: [PATCH] Fix infinite loop introduced with f3f0252d9b6313b7977a40be321b789dc2965bb1 If the template content didn't match the regex, it would loop indefinitely --- mythtv/libs/libmythui/mythuitext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mythtv/libs/libmythui/mythuitext.cpp b/mythtv/libs/libmythui/mythuitext.cpp index be435321e7b..f0224762cd9 100644 --- a/mythtv/libs/libmythui/mythuitext.cpp +++ b/mythtv/libs/libmythui/mythuitext.cpp @@ -155,6 +155,7 @@ void MythUIText::ResetMap(const InfoMap &map) replaced = true; break; } + pos += regexp.matchedLength(); } }