forked from bartvdbraak/blender
More fix for this stupid uppercase-to-lowercase convertion code... Thanks to Lockal for noting this!
This commit is contained in:
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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user