From c83d16f8ee5721de1da3e8449c30a31ca1372d28 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 25 Jul 2001 12:18:23 +0000 Subject: another fix for 15477 (separator strings); add list-separator style (15484) --- Src/Zle/computil.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 902bb123c..a0f7603e2 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -504,11 +504,12 @@ cd_get(char **params) case CRT_DESC: { VARARR(char, buf, - cd_state.pre + cd_state.suf + cd_state.slen + 1); + cd_state.pre + cd_state.suf + cd_state.slen + 3); char *sufp = NULL; - memcpy(buf + cd_state.pre, cd_state.sep, cd_state.slen); - sufp = buf + cd_state.pre + cd_state.slen; + memcpy(buf + cd_state.pre + 2, cd_state.sep, cd_state.slen); + buf[cd_state.pre] = buf[cd_state.pre + 1] = ' '; + sufp = buf + cd_state.pre + cd_state.slen + 2; mats = mp = (char **) zalloc((run->count + 1) * sizeof(char *)); dpys = dp = (char **) zalloc((run->count + 1) * sizeof(char *)); -- cgit 1.4.1