Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.6-test-3: crash in _cvs dot-files stuff
- X-seq: zsh-workers 7309
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: 3.1.6-test-3: crash in _cvs dot-files stuff
- Date: Wed, 28 Jul 1999 18:13:17 +0200
- In-reply-to: "Peter Stephenson"'s message of "Wed, 28 Jul 1999 18:05:10 DFT." <9907281605.AA27434@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
dammit.
--- Src/Zle/zle_tricky.c.pm2 Wed Jul 28 17:49:06 1999
+++ Src/Zle/zle_tricky.c Wed Jul 28 18:07:17 1999
@@ -6340,7 +6340,7 @@
/* It's a simple pattern, so append it to *
* the path we have on the command line. */
int minlen = o + strlen(g);
- if (minlen > paalloc)
+ if (minlen >= paalloc)
pa = (char *)
zrealloc(pa, paalloc = minlen+1);
strcpy(pa + o, g);
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author