@@ -352,7 +352,7 @@ static int write_zip_entry(struct archiver_args *args,
352
352
if (!buffer )
353
353
return error (_ ("cannot read %s" ),
354
354
oid_to_hex (oid ));
355
- crc = crc32 (crc , buffer , size );
355
+ crc = xcrc32 (crc , buffer , size );
356
356
is_binary = entry_is_binary (args -> repo -> index ,
357
357
path_without_prefix ,
358
358
buffer , size );
@@ -428,7 +428,7 @@ static int write_zip_entry(struct archiver_args *args,
428
428
readlen = read_istream (stream , buf , sizeof (buf ));
429
429
if (readlen <= 0 )
430
430
break ;
431
- crc = crc32 (crc , buf , readlen );
431
+ crc = xcrc32 (crc , buf , readlen );
432
432
if (is_binary == -1 )
433
433
is_binary = entry_is_binary (args -> repo -> index ,
434
434
path_without_prefix ,
@@ -461,7 +461,7 @@ static int write_zip_entry(struct archiver_args *args,
461
461
readlen = read_istream (stream , buf , sizeof (buf ));
462
462
if (readlen <= 0 )
463
463
break ;
464
- crc = crc32 (crc , buf , readlen );
464
+ crc = xcrc32 (crc , buf , readlen );
465
465
if (is_binary == -1 )
466
466
is_binary = entry_is_binary (args -> repo -> index ,
467
467
path_without_prefix ,
0 commit comments