Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2003 17:35:16 +0000 (17:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2003 17:35:16 +0000 (17:35 +0000)
lib/ChangeLog

index 6733de406024bf096852f1bd5b471bc2457c9839..429a189345f8d6321138e9109aa0b5f2419bd589 100644 (file)
@@ -1,3 +1,12 @@
+2003-10-29  Paul Eggert  <eggert@twinsun.com>
+
+       * getgroups.c (getgroups): Don't use xrealloc, since we don't need
+       the buffer preserved.  Use free and xmalloc instead.
+       * quotearg.c (quotearg_n_options): Likewise.
+       Use a simpler test for size overflow.  Don't use xalloc_oversized
+       because unsigned int might be wider than size_t (!); this suggests
+       that we should switch from unsigned int to size_t for slot numbers.
+       
 2003-10-27  Bruno Haible  <bruno@clisp.org>
 
        * stdbool_.h: Better support for BeOS.