From 1b74fb9ba75495dbc15418fcb3574a5bb3051d06 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Tue, 19 Jun 2012 20:02:56 -0600 Subject: [PATCH] instant: fix infinite loop seen in non-C locales --- cde/programs/dtdocbook/instant/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cde/programs/dtdocbook/instant/main.c b/cde/programs/dtdocbook/instant/main.c index 2de16a88..2a917639 100644 --- a/cde/programs/dtdocbook/instant/main.c +++ b/cde/programs/dtdocbook/instant/main.c @@ -455,7 +455,10 @@ static int CompareI18NStrings(ClientData clientData, } cp++; } else { + if (len > 0) cp += len; + else + break; /* JET - we should be done here... */ } } cp = argv[2]; @@ -466,7 +469,10 @@ static int CompareI18NStrings(ClientData clientData, } cp++; } else { + if (len > 0) cp += len; + else + break; /* JET - we should be done here... */ } } -- 2.25.1