Fix the build.

N.B. 'ar' format support is broken right now, it's not
passing tests.  If I can't find the problem soon, I'll
back out the last commit.
This commit is contained in:
Tim Kientzle 2007-04-14 08:42:50 +00:00
parent 22ff6c7af3
commit fac89d2743
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ LDADD= -lbz2 -lz
# Major: Bumped ONLY when API/ABI breakage happens (see SHLIB_MAJOR)
# Minor: Bumped when significant new features are added
# Revision: Bumped on any notable change
VERSION= 2.0.29
VERSION= 2.0.30
ARCHIVE_API_MAJOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/\..*//'
ARCHIVE_API_MINOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/[0-9]*\.//' -e 's/\..*//'

View File

@ -258,7 +258,7 @@ archive_read_format_ar_read_header(struct archive_read *a,
bytes = (a->compression_read_ahead)(a, &b, tab_size);
if (bytes <= 0)
return (ARCHIVE_FATAL);
if (bytes < tab_size) {
if (bytes < nval) {
archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
"Truncated input file");
return (ARCHIVE_FATAL);