@@ -352,7 +352,7 @@ static int write_zip_entry(struct archiver_args *args,
352352 if (!buffer )
353353 return error (_ ("cannot read %s" ),
354354 oid_to_hex (oid ));
355- crc = crc32 (crc , buffer , size );
355+ crc = xcrc32 (crc , buffer , size );
356356 is_binary = entry_is_binary (args -> repo -> index ,
357357 path_without_prefix ,
358358 buffer , size );
@@ -428,7 +428,7 @@ static int write_zip_entry(struct archiver_args *args,
428428 readlen = read_istream (stream , buf , sizeof (buf ));
429429 if (readlen <= 0 )
430430 break ;
431- crc = crc32 (crc , buf , readlen );
431+ crc = xcrc32 (crc , buf , readlen );
432432 if (is_binary == -1 )
433433 is_binary = entry_is_binary (args -> repo -> index ,
434434 path_without_prefix ,
@@ -461,7 +461,7 @@ static int write_zip_entry(struct archiver_args *args,
461461 readlen = read_istream (stream , buf , sizeof (buf ));
462462 if (readlen <= 0 )
463463 break ;
464- crc = crc32 (crc , buf , readlen );
464+ crc = xcrc32 (crc , buf , readlen );
465465 if (is_binary == -1 )
466466 is_binary = entry_is_binary (args -> repo -> index ,
467467 path_without_prefix ,
0 commit comments