Compare commits
No commits in common. "d8faf424ad64af0d42b44484c7baf57d2f1e3abd" and "9a7629459e5c0bc72f930b98905ad78476c6f2c6" have entirely different histories.
d8faf424ad
...
9a7629459e
@ -29,6 +29,4 @@ else()
|
||||
endif()
|
||||
|
||||
install(TARGETS minitar DESTINATION lib)
|
||||
install(FILES minitar.h DESTINATION include)
|
||||
|
||||
add_subdirectory(examples)
|
||||
install(FILES minitar.h DESTINATION include)
|
@ -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)
|
@ -203,7 +203,7 @@ uint32_t minitar_checksum_header(const struct tar_header* hdr)
|
||||
const uint8_t* ptr = (const uint8_t*)hdr;
|
||||
|
||||
// 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;
|
||||
ptr++;
|
||||
|
Loading…
Reference in New Issue
Block a user