diff options
author | Denis Vlasenko | 2006-10-10 21:00:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-10 21:00:47 +0000 |
commit | cba9ef5523f09ecc3240f9f6efcdd0440c652c91 (patch) | |
tree | 79a2f859df1f6eef15defd02bd2f453735ed327e /archival/libunarchive/get_header_cpio.c | |
parent | 1ac42bf66e2c181b886e89f9222cae65676c9e8a (diff) | |
download | busybox-cba9ef5523f09ecc3240f9f6efcdd0440c652c91.zip busybox-cba9ef5523f09ecc3240f9f6efcdd0440c652c91.tar.gz |
fixes from Vladimir Dronnikov <dronnikov@gmail.ru>
Diffstat (limited to 'archival/libunarchive/get_header_cpio.c')
-rw-r--r-- | archival/libunarchive/get_header_cpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index bc766c6..56862f1 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c @@ -61,13 +61,13 @@ char get_header_cpio(archive_handle_t *archive_handle) } { - unsigned long tmpsize; - sscanf(cpio_header, "%6c%8x%8x%8x%8x%8x%8lx%8lx%16c%8x%8x%8x%8c", + unsigned long tmpsize; + sscanf(cpio_header, "%6c%8x%8x%8x%8x%8x%8lx%8lx%16c%8x%8x%8x%8c", dummy, &inode, (unsigned int*)&file_header->mode, (unsigned int*)&file_header->uid, (unsigned int*)&file_header->gid, &nlink, &file_header->mtime, &tmpsize, dummy, &major, &minor, &namesize, dummy); - file_header->size = tmpsize; + file_header->size = tmpsize; } file_header->name = (char *) xzalloc(namesize + 1); |