]> Dogcows Code - chaz/tar/commit
(<unistd.h>): Do not include; there's no need.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jun 2000 23:25:37 +0000 (23:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jun 2000 23:25:37 +0000 (23:25 +0000)
commitf996454418476a9be0752d1e40e2faa8e8cdcb52
tree1161fb89527ca643c8702f9b85c6d312323fe7d6
parentee21d9f1e319e42037ec8e12b610eb358d26ed7f
(<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.
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.
lib/savedir.c
This page took 0.025717 seconds and 4 git commands to generate.