diff options
-rw-r--r-- | Templates/TestDriver.cxx.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 7e17761..8e54680 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -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; } |