aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 9b15b3cd6..89ce2cfc8 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1574,7 +1574,10 @@ static int awk_split(const char *s, node *spl, char **slist)
1574 if (s[l]) pmatch[0].rm_eo++; 1574 if (s[l]) pmatch[0].rm_eo++;
1575 } 1575 }
1576 memcpy(s1, s, l); 1576 memcpy(s1, s, l);
1577 s1[l] = '\0'; 1577 /* make sure we remove *all* of the separator chars */
1578 while (l < pmatch[0].rm_eo) {
1579 s1[l++] = '\0';
1580 }
1578 nextword(&s1); 1581 nextword(&s1);
1579 s += pmatch[0].rm_eo; 1582 s += pmatch[0].rm_eo;
1580 } while (*s); 1583 } while (*s);