aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 01346108a..b290b6dbc 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1761,7 +1761,7 @@ makestrspace(size_t newlen, char *p)
1761} 1761}
1762 1762
1763static char * 1763static char *
1764stack_nputstr(const char *s, size_t n, char *p) 1764stnputs(const char *s, size_t n, char *p)
1765{ 1765{
1766 p = makestrspace(n, p); 1766 p = makestrspace(n, p);
1767 p = (char *)mempcpy(p, s, n); 1767 p = (char *)mempcpy(p, s, n);
@@ -1771,7 +1771,7 @@ stack_nputstr(const char *s, size_t n, char *p)
1771static char * 1771static char *
1772stack_putstr(const char *s, char *p) 1772stack_putstr(const char *s, char *p)
1773{ 1773{
1774 return stack_nputstr(s, strlen(s), p); 1774 return stnputs(s, strlen(s), p);
1775} 1775}
1776 1776
1777static char * 1777static char *
@@ -6756,7 +6756,7 @@ argstr(char *p, int flags)
6756 } 6756 }
6757 if (length > 0) { 6757 if (length > 0) {
6758 int newloc; 6758 int newloc;
6759 expdest = stack_nputstr(p, length, expdest); 6759 expdest = stnputs(p, length, expdest);
6760 newloc = expdest - (char *)stackblock(); 6760 newloc = expdest - (char *)stackblock();
6761 if (breakall && !inquotes && newloc > startloc) { 6761 if (breakall && !inquotes && newloc > startloc) {
6762 recordregion(startloc, newloc, 0); 6762 recordregion(startloc, newloc, 0);