Skip to content

Commit

Permalink
Patch 1555
Browse files Browse the repository at this point in the history
・Patch1554のエラーを修正(common/grfio.c)
  • Loading branch information
refis committed Sep 18, 2024
1 parent af1f697 commit 70a638b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
----------------------------------------
//1555 [2024/09/19] by refis

・Patch1554のエラーを修正(common/grfio.c)

----------------------------------------
//1554 [2024/09/18] by refis

Expand Down
4 changes: 2 additions & 2 deletions src/common/grfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 766,7 @@ static int grfio_entryread(const char *gfname,int gentry)
diff = 4;
case 0x0200: //****** Grf version 02xx ******
{
unsigned char eheader[8 diff];
unsigned char eheader[12];
unsigned char *rBuf;
unsigned int rSize;
unsigned long eSize;
Expand All @@ -778,7 778,7 @@ static int grfio_entryread(const char *gfname,int gentry)
uint32 uncompressedLength; // 4
unsigned char body[compressedLength]; // 8
};*/
fread(eheader, 1, sizeof(eheader), fp);
fread(eheader, 1, (size_t)(8 diff), fp);
rSize = getlong(eheader diff); // Read Size
eSize = getlong(eheader 4 diff); // Extend Size

Expand Down

0 comments on commit 70a638b

Please sign in to comment.