zsh-workers
 help / color / mirror / code / Atom feed
From: Louis.Granboulan@ens.fr (Louis Granboulan)
To: zsh-workers@math.gatech.edu
Subject: zsh-mem & prompt
Date: Fri, 2 Aug 1996 16:58:44 +0200 (MET DST)	[thread overview]
Message-ID: <199608021458.QAA16392@agaric.ens.fr> (raw)

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


             reply	other threads:[~1996-08-02 15:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-02 14:58 Louis Granboulan [this message]
1996-08-02 18:26 ` Zoltan Hidvegi
1996-08-02 18:51   ` Bill Pemberton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199608021458.QAA16392@agaric.ens.fr \
    --to=louis.granboulan@ens.fr \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).