summaryrefslogtreecommitdiffstats
path: root/5/11.c
diff options
context:
space:
mode:
Diffstat (limited to '5/11.c')
-rw-r--r--5/11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/5/11.c b/5/11.c
index 1145bf2..df1f6b3 100644
--- a/5/11.c
+++ b/5/11.c
@@ -120,9 +120,10 @@ void entab(char *s, char *t, int *tablist, int tablistc) {
} else {
for (m = j, n = l; n <= tablist[i] && s[m] == ' '; m++, n++)
;
- if (n == tablist[i]) {
+ if (n == tablist[i] + 1) {
t[k++] = '\t';
l = n + 1;
+ j = m - 1;
for (i += 1; i < tablistc && tablist[i] >= l; i++)
;
} else {