TestDriver: use for loop

This commit is contained in:
Daniel Pfeifer 2017-01-24 22:24:06 +01:00
parent 60b68304f2
commit 3bb4a79826

View File

@ -47,10 +47,8 @@ static char* lowercase(const char* string)
return 0;
}
strncpy(new_string, string, stringSize);
p = new_string;
while (*p != 0) {
for (p = new_string; *p != 0; ++p) {
*p = CM_CAST(char, tolower(*p));
++p;
}
return new_string;
}