summaryrefslogtreecommitdiff
path: root/ch2/2-10.c
diff options
context:
space:
mode:
Diffstat (limited to 'ch2/2-10.c')
-rw-r--r--ch2/2-10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ch2/2-10.c b/ch2/2-10.c
index 3c6b0cc..e630718 100644
--- a/ch2/2-10.c
+++ b/ch2/2-10.c
@@ -16,7 +16,7 @@ int main() {
void lower_str(char source[], char dest[]) {
int i;
- for (i = 0; source[i] != '\0'; i++)
+ for (i = 0; source[i]; i++)
dest[i] = lower_char(source[i]);
dest[i] = '\0';