Re: bug in 4.2

2014-01-29 Thread Chet Ramey
On 1/29/14 6:53 AM, Csaba Toth wrote: > Hi, > > If you set PROMPT_DIRTRIM, in some cases strange output displayed in the > prompt. I found an issue inside the trim_pathname() function, that uses > memcpy() to copy head and tail together. That should not be used if the > memory is overlapped and me

bug in 4.2

2014-01-29 Thread Csaba Toth
Hi, If you set PROMPT_DIRTRIM, in some cases strange output displayed in the prompt. I found an issue inside the trim_pathname() function, that uses memcpy() to copy head and tail together. That should not be used if the memory is overlapped and memmove() shall be used instead. Please find m