source: branches/stable/mindi-busybox/archival/libunarchive/data_extract_to_buffer.c @ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 14 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 407 bytes
Line 
1/*
2 * Copyright 2002 Glenn McGrath
3 *
4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
5 */
6
7#include "libbb.h"
8#include "unarchive.h"
9
10void data_extract_to_buffer(archive_handle_t *archive_handle)
11{
12    const unsigned int size = archive_handle->file_header->size;
13
14    archive_handle->buffer = xzalloc(size + 1);
15
16    archive_xread_all(archive_handle, archive_handle->buffer, size);
17}
Note: See TracBrowser for help on using the repository browser.