Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh-mem & prompt



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