]> Dogcows Code - chaz/tar/commit
(name_gather, addname): Use offsetof when computing sizes for
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Aug 2001 21:37:27 +0000 (21:37 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Aug 2001 21:37:27 +0000 (21:37 +0000)
commit421568c00226bb0a63e6b8e3cdb3a1793200b719
tree0c51643c1ad08d8322ade968a3bf9b2b9e6b96dc
parenteb5c8f4b8b84e341eec47833ccc9401b9293a0cf
(name_gather, addname): Use offsetof when computing sizes for
struct hack; this avoids wasted space in some cases.
(name_gather): Use strcpy, not memcpy.
for consistency with other code that does similar things.
(read_name_from_file, name_next, name_gather, add_hierarchy_to_namelist):
Avoid quadratic behavior when reallocating buffers.
Check for buffer size overflow.
(addname): Avoid unnecessary clearing of memory.
src/names.c
This page took 0.025059 seconds and 4 git commands to generate.