summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <peter@mysql.com>2002-08-08 12:43:17 +0400
committerunknown <peter@mysql.com>2002-08-08 12:43:17 +0400
commit26d3263617766b0c95e1e14fba022b834fb14206 (patch)
tree306f59fcec288ad422650c4df2f9136910b536c8 /mysys
parenta6b15fdd7682bffc2e197ac50e21332bb9bcf297 (diff)
parentb7b90430c4290e4fb633cb3a38bd2f501f39a998 (diff)
downloadmariadb-git-26d3263617766b0c95e1e14fba022b834fb14206.tar.gz
Merge mysql.com:/home/pz/mysql/mysql-4.0-root
into mysql.com:/home/pz/mysql/mysql-4.0
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_casecnv.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mysys/mf_casecnv.c b/mysys/mf_casecnv.c
index 0302688ad1f..1fae3aead32 100644
--- a/mysys/mf_casecnv.c
+++ b/mysys/mf_casecnv.c
@@ -45,8 +45,11 @@ void caseup_str(my_string str)
}
else
#endif
- while ((*str = toupper(*str)) != 0)
+ while (*str!=0) /* iterate till the end of string */
+ {
+ *str= toupper(*str);
str++;
+ }
} /* caseup_str */
/* string to lowercase */
@@ -66,8 +69,11 @@ void casedn_str(my_string str)
}
else
#endif
- while ((*str= tolower(*str)) != 0)
+ while (*str!=0) /* iterate till the end of string */
+ {
+ *str= tolower(*str);
str++;
+ }
} /* casedn_str */