Missing cast. in fnmatch_loop.c

Alex Cherepanov <[email protected]> Wed, 14 Apr 2004 10:03:53 -0400
Newsgroups gmane.comp.gnu.textutils.bugs
Organization Coscript Software
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------090203090403080902090403
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

The cast is missing in lib/fnmatch_loop.c distributed with
textutils-2.1. . The patch is attached.




--------------090203090403080902090403
Content-Type: text/plain;
 name="fnmatch_loop.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="fnmatch_loop.c.diff"

--- fnmatch_loop.c.old	Wed Apr 14 09:47:19 2004
+++ fnmatch_loop.c	Wed Apr 14 09:49:57 2004
@@ -1053,10 +1053,10 @@
 	    struct patternlist *newp;					      \
 									      \
 	    if (opt == L('?') || opt == L('@'))				      \
-	      newp = alloca (offsetof (struct patternlist, str)		      \
+	      newp = (struct patternlist *)alloca (offsetof (struct patternlist, str)  \
 			     + (pattern_len * sizeof (CHAR)));		      \
 	    else							      \
-	      newp = alloca (offsetof (struct patternlist, str)		      \
+	      newp = (struct patternlist *)alloca (offsetof (struct patternlist, str)  \
 			     + ((p - startp + 1) * sizeof (CHAR)));	      \
 	    *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L('\0');    \
 	    newp->next = NULL;						      \

--------------090203090403080902090403
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bug-textutils mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/bug-textutils

--------------090203090403080902090403--