diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-19 21:59:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-19 21:59:34 +0000 |
commit | 2ddaeb605f4b7a89dab23a843ae79fbdc88afa69 (patch) | |
tree | 53bef461db285cdee0195eff2fe411cf6386d38a /Src/prompt.c | |
parent | 26e60b1f3a375e22393b96640209ca26e63d87d4 (diff) | |
download | zsh-2ddaeb605f4b7a89dab23a843ae79fbdc88afa69.tar.gz zsh-2ddaeb605f4b7a89dab23a843ae79fbdc88afa69.tar.xz zsh-2ddaeb605f4b7a89dab23a843ae79fbdc88afa69.zip |
21890: fix segmentation error in left prompt truncation and a couple of minor
inconsistencies
Diffstat (limited to 'Src/prompt.c')
-rw-r--r-- | Src/prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index f96369760..8b3aa531e 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -1078,7 +1078,7 @@ prompttrunc(int arg, int truncchar, int doprint, int endchar) int remw; mbstate_t mbs; - fulltextptr = fulltext = bp; + fulltextptr = fulltext = ptr + ntrunc; memmove(fulltext, ptr, fullen); fulltext[fullen] = '\0'; |