From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: compfiles
Date: Wed, 25 Apr 2001 11:03:45 +0200 (MET DST) [thread overview]
Message-ID: <200104250903.LAA03520@beta.informatik.hu-berlin.de> (raw)
The other one from the debian bug list (I had almost forgotten).
The mistake is so embarrassing, I almost don't dare to show you the patch.
It showed up (sometimes) when completing files with a long prefix.
I'm going to commit this one and when sunsite comes up again, I'll
change the number in the ChangeLog.
Bye
Sven
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.48
diff -u -r1.48 computil.c
--- Src/Zle/computil.c 2001/04/17 09:52:32 1.48
+++ Src/Zle/computil.c 2001/04/25 09:01:40
@@ -3261,7 +3261,7 @@
if (haswilds(t))
return;
}
- add = (char *) zhalloc(sizeof(compprefix) * 2 + 1);
+ add = (char *) zhalloc(strlen(compprefix) * 2 + 1);
for (s = compprefix, t = add; *s; s++) {
if (*s != '\\' || !s[1] || s[1] == '*' || s[1] == '?' ||
s[1] == '<' || s[1] == '>' || s[1] == '(' || s[1] == ')' ||
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~2001-04-25 12:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200104250903.LAA03520@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/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).