Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-11-16 18:31:00 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-11-16 18:34:47 +0400
commit1a0fed9ee08e4499c7a5652f1519a73a290e2962 (patch)
treeff4401ac09a1e2803b6d8b07af21ff31f75baa52 /source
parent3e87abb4be9f3fa70c3be2d7276029d8b8929c59 (diff)
More fix for this stupid uppercase-to-lowercase convertion code... Thanks to Lockal for noting this!
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c
index 4b6ac824fd8..64470542844 100644
--- a/source/blender/blenkernel/intern/unit.c
+++ b/source/blender/blenkernel/intern/unit.c
@@ -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');
}