Skip to content

Commit

Permalink
Fix the zlib output size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spl3en committed Jan 12, 2016
1 parent b1e59d9 commit f433598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/zlib/zlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

typedef struct {
uint16_t magic;
uint16_t size;
uint32_t size;
} ZlibHeader;

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion src/ipf_unpack/ipf_unpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int process_ipf (uint8_t *data, size_t dataSize, char *archive, char *filename,

if (file_is_extension (name, "ies")) {
// IES parser
FILE *ies = fopen (targetFullName, "w+");
FILE *ies = fopen (targetFullName, "wb+");
IesParams iesParams = {.output = ies};
ies_read (fileContent, fileSize, process_ies, &iesParams);
fclose (ies);
Expand Down

0 comments on commit f433598

Please sign in to comment.