Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: compfiles
- X-seq: zsh-workers 14089
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: compfiles
- Date: Wed, 25 Apr 2001 11:03:45 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author