The cast is missing in lib/fnmatch_loop.c distributed with textutils-2.1. . The patch is attached.
--- 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; \
_______________________________________________ Bug-textutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-textutils