Compare commits

..

No commits in common. "d8faf424ad64af0d42b44484c7baf57d2f1e3abd" and "9a7629459e5c0bc72f930b98905ad78476c6f2c6" have entirely different histories.

3 changed files with 2 additions and 9 deletions

View File

@ -30,5 +30,3 @@ endif()
install(TARGETS minitar DESTINATION lib) install(TARGETS minitar DESTINATION lib)
install(FILES minitar.h DESTINATION include) install(FILES minitar.h DESTINATION include)
add_subdirectory(examples)

View File

@ -1,5 +0,0 @@
add_executable(list EXCLUDE_FROM_ALL list.c)
target_link_libraries(list PRIVATE minitar)
add_executable(untar EXCLUDE_FROM_ALL untar.c)
target_link_libraries(untar PRIVATE minitar)

View File

@ -203,7 +203,7 @@ uint32_t minitar_checksum_header(const struct tar_header* hdr)
const uint8_t* ptr = (const uint8_t*)hdr; const uint8_t* ptr = (const uint8_t*)hdr;
// Sum up all bytes in the header, as unsigned bytes... // Sum up all bytes in the header, as unsigned bytes...
while (ptr < (const uint8_t*)hdr + (sizeof *hdr - sizeof hdr->padding)) while (ptr < (const uint8_t*)hdr + sizeof *hdr)
{ {
sum += *ptr; sum += *ptr;
ptr++; ptr++;