mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
12 lines
326 B
C
12 lines
326 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "unarchive.h"
|
|
#include "libbb.h"
|
|
|
|
extern void data_extract_to_buffer(archive_handle_t *archive_handle)
|
|
{
|
|
archive_handle->buffer = xmalloc(archive_handle->file_header->size + 1);
|
|
|
|
xread_all(archive_handle->src_fd, archive_handle->buffer, archive_handle->file_header->size);
|
|
}
|