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



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