summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--5/11.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/5/11.c b/5/11.c
index 72fe92f..2421627 100644
--- a/5/11.c
+++ b/5/11.c
@@ -110,11 +110,12 @@ void entab(char *s, char *t, int *tablist, int tablistc) {
else
col++;
} else {
- for (; col <= tablist[j++] && k < MAXTEXT; col++)
+ for (; col <= tablist[j] && k < MAXTEXT; col++)
t[k++] = ' ';
+ j++;
}
}
- }
- t[j] = 0;
+ t[k] = 0;
+ }
} \ No newline at end of file