--- lib/fnmatch.c 2000/10/24 06:18:37 1.2 +++ lib/fnmatch.c 2000/11/03 00:23:21 1.4 @@ -27,22 +27,10 @@ #include #include - -/* Comment out all this code if we are using the GNU C Library, and are not - actually compiling the library itself. This code is part of the GNU C - Library, but also included in many other GNU distributions. Compiling - and linking in this code is a waste when using the GNU C library - (especially if it is a shared library). Rather than having every GNU - program understand `configure --with-gnu-libc' and omit the object files, - it is simpler to just do this in the source for each such file. */ - -#if defined _LIBC || !defined __GNU_LIBRARY__ - - # if defined STDC_HEADERS || !defined isascii # define IN_CTYPE_DOMAIN(c) 1 # else -# define IN_CTYPE_DOMAIN(c) isascii(c) +# define IN_CTYPE_DOMAIN(c) isascii (c) # endif # define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) @@ -61,7 +49,9 @@ fnmatch (const char *pattern, const char register char c; /* Note that this evaluates C many times. */ -# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) +# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER ((unsigned char) (c)) \ + ? tolower ((unsigned char) (c)) \ + : (c)) while ((c = *p++) != '\0') { @@ -238,5 +228,3 @@ fnmatch (const char *pattern, const char # undef FOLD } - -#endif /* _LIBC or not __GNU_LIBRARY__. */ --- src/create.c.orig Sun Oct 29 01:30:02 2000 +++ src/create.c Fri Nov 24 16:34:43 2000 @@ -710,6 +710,14 @@ clear_buffer (buffer); } + if (sp_array_size <= sparses) + { + sparsearray = + xrealloc (sparsearray, + 2 * sp_array_size * sizeof (struct sp_array)); + sp_array_size *= 2; + } + if (numbytes) sparsearray[sparses++].numbytes = numbytes; else