diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tarfn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tarfn.c b/lib/tarfn.c index 799f0c6bb..18c0bc17b 100644 --- a/lib/tarfn.c +++ b/lib/tarfn.c @@ -200,13 +200,14 @@ TarExtractor( status = functions->Read(userData, buffer, 512); // if we didn't get 512 bytes read, punt - if (512 != status) + if (512 != status) { if ( status > 0 ) { /* Read partial header record */ errno = 0; return -1; } else { return status; } + } copysize = long_read > 512 ? 512 : long_read; memcpy (bp, buffer, copysize); |