Mercurial > hg > octave-nkf > gnulib-hg
changeset 2659:68304b35d0f4
*** empty log message ***
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 27 Jun 2000 07:08:52 +0000 |
parents | eea9e16a185f |
children | 219f7e6399c1 |
files | lib/ChangeLog |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,25 @@ +2000-06-26 Paul Eggert <eggert@twinsun.com> + + savedir now sets errno on failure and invokes xmalloc to get memory. + Fix a couple of other minor bugs while we're at it. + + * savedir.c (<unistd.h>): Do not include; there's no need. + (NAMLEN): Remove macro. + (malloc, realloc): Remove decls. + (stpcpy): Likewise. + ("xalloc.h"): Include. + (NAME_SIZE_DEFAULT): New macro. + (savedir): Use xmalloc / xrealloc to allocate memory. + Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. + Skip "" directory entries. + Use strlen to calculate directory entry length, since the old method + is rarely used these days and isn't worth supporting. + Don't use a pointer after freeing it. + Check for integer overflow when calculating allocation size. + Use memcpy to copy entries, instead of stpcpy. + Set errno properly when returning NULL. + Check for readdir error. + 2000-06-26 Jim Meyering <meyering@lucent.com> * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.