summaryrefslogtreecommitdiffstats
path: root/5/11.c
diff options
context:
space:
mode:
Diffstat (limited to '5/11.c')
-rw-r--r--5/11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/5/11.c b/5/11.c
index 399f78e..545d0cb 100644
--- a/5/11.c
+++ b/5/11.c
@@ -97,7 +97,7 @@ void entab(char *s, char *t, int *tablist, int tablistc) {
if (s[i] != ' ')
t[j++] = s[i];
else {
- for (k = i; k < i + TABSIZE && s[k] != 0; k++)
+ for (k = i; k < i + TABSIZE && s[k] == ' '; k++)
;
if (k == i + TABSIZE - 1) {
t[j++] = '\t';