zsh-workers
 help / color / mirror / code / Atom feed
* zsh-mem & prompt
@ 1996-08-02 14:58 Louis Granboulan
  1996-08-02 18:26 ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: Louis Granboulan @ 1996-08-02 14:58 UTC (permalink / raw)
  To: zsh-workers

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);
+     }


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-08-02 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-02 14:58 zsh-mem & prompt Louis Granboulan
1996-08-02 18:26 ` Zoltan Hidvegi
1996-08-02 18:51   ` Bill Pemberton

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).