mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +00:00
instant: fix infinite loop seen in non-C locales
This commit is contained in:
parent
5f48454d8e
commit
1b74fb9ba7
1 changed files with 6 additions and 0 deletions
|
@ -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... */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue