*/
#include "libbb.h"
-#include "archive.h"
+#include "bb_archive.h"
typedef struct hardlinks_t {
struct hardlinks_t *next;
}
archive_handle->offset += 110;
- if (strncmp(&cpio_header[0], "07070", 5) != 0
+ if (!is_prefixed_with(&cpio_header[0], "07070")
|| (cpio_header[5] != '1' && cpio_header[5] != '2')
) {
bb_error_msg_and_die("unsupported cpio format, use newc or crc");