mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
A block in a tar file is 512 bytes. Period.
Remove the entirely pointless symbolic constant and sizeof(unsigned char). (The constant here is doubly wrong, since not only does it obscure a basic format constant, it was never intended to be a tar-specific value, so could conceivably be changed at some point in the future.)
This commit is contained in:
parent
eaf86d1678
commit
20347f62e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177182
@ -714,7 +714,7 @@ archive_block_is_null(const unsigned char *p)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < ARCHIVE_BYTES_PER_RECORD / sizeof(*p); i++)
|
||||
for (i = 0; i < 512; i++)
|
||||
if (*p++)
|
||||
return (0);
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user