More fix for this stupid uppercase-to-lowercase convertion code... Thanks to Lockal for noting this!

This commit is contained in:
Bastien Montagne 2013-11-16 15:31:00 +01:00
parent 3e87abb4be
commit 1a0fed9ee0

@ -609,7 +609,7 @@ int bUnit_ReplaceString(char *str, int len_max, const char *str_prev, double sca
int i;
char *ch = str;
for (i = 0; (i < len_max || *ch != '\0'); i++, ch++) {
for (i = 0; (i < len_max) && (*ch != '\0'); i++, ch++) {
if ((*ch >= 'A') && (*ch <= 'Z'))
*ch += ('a' - 'A');
}