diff options
Diffstat (limited to 'app-shells/dash/files/dash-0.5.3-read-length.patch')
-rw-r--r-- | app-shells/dash/files/dash-0.5.3-read-length.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-shells/dash/files/dash-0.5.3-read-length.patch b/app-shells/dash/files/dash-0.5.3-read-length.patch new file mode 100644 index 000000000000..07bf834d37d2 --- /dev/null +++ b/app-shells/dash/files/dash-0.5.3-read-length.patch @@ -0,0 +1,13 @@ +--- src/expand.c ++++ src/expand.c +@@ -1643,7 +1643,10 @@ + size_t fulllen = len + strlen(p) + 1; + + if (flag & RMESCAPE_GROW) { ++ int strloc = str - (char *)stackblock(); + r = makestrspace(fulllen, expdest); ++ str = (char *)stackblock() + strloc; ++ p = str + len; + } else if (flag & RMESCAPE_HEAP) { + r = ckmalloc(fulllen); + } else { |