Skip to content

Commit d793e38

Browse files
committed
Expand buffers to prevent potential truncation
1 parent aea99aa commit d793e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/tools/asm/cmdlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void ExpandWildcards( int *argc, char ***argv )
6565
struct _finddata_t fileinfo;
6666
intptr_t handle;
6767
int i;
68-
char filename[1024];
68+
char filename[2048];
6969
char filebase[1024];
7070
char *path;
7171

@@ -338,7 +338,7 @@ char *ExpandGamePath (const char *path)
338338
char *ExpandPathAndArchive (const char *path)
339339
{
340340
char *expanded;
341-
char archivename[1024];
341+
char archivename[2048];
342342

343343
expanded = ExpandPath (path);
344344

0 commit comments

Comments
 (0)