]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Refactored common code into a single function 26/head
authorBrian Weaver <cmdrclueless@gmail.com>
Wed, 26 Sep 2012 15:45:52 +0000 (11:45 -0400)
committerBrian Weaver <cmdrclueless@gmail.com>
Wed, 26 Sep 2012 15:45:52 +0000 (11:45 -0400)
commit0c9a29f22e26c84c5049f5d9eeb5ae5bc722fde8
tree2a7ef062854cafa41b83d5bba3b80d4b1df1d08a
parentdb811950632784ce99d36c1c2402a021744df86a
Refactored common code into a single function

The tar_atol8() and tar_atol10() functions were essentially
identical. The code has been refactored to a common function
with tar_atol8() and tar_atol10() calling the commont function
with the radix instead duplicating the code.

The logic was also changed slightly to prevent a pointer
dereference when a zero length character array is passed to
the conversion routine.
libarchive/archive_read_support_format_tar.c