Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh-mem & prompt
- X-seq: zsh-workers 1891
- From: Louis.Granboulan@xxxxxx (Louis Granboulan)
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: zsh-mem & prompt
- Date: Fri, 2 Aug 1996 16:58:44 +0200 (MET DST)
This is zsh-3.0-pre5 on a SPARCstation-5 with SunOS 4.1.4
When it is configured with --enable-zsh-mem, I have the following
message : attempt to free more than allocated
The problem is that the prompt buffer `lpptbuf' does not terminate with '\0'.
Here is a patch that solves this:
*** zle_misc.c.orig Wed Jul 31 17:43:13 1996
--- zle_misc.c Fri Aug 2 16:55:55 1996
***************
*** 1279,1280 ****
--- 1279,1285 ----
}
+ /* Terminate the string */
+ if (! *fm) {
+ addbufspc(1);
+ pputc(*fm);
+ }
Messages sorted by:
Reverse Date,
Date,
Thread,
Author