From e733ac2cf89c338903b054d3f747d6be4675d9a2 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 22:16:54 +0100 Subject: [PATCH] Doubled the size of fd_file_name in win/win_new_floppy.c, fixes array overrun in zip_load(). --- src/win/win_new_floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_new_floppy.c b/src/win/win_new_floppy.c index 0dff080c9..ab41d7df3 100644 --- a/src/win/win_new_floppy.c +++ b/src/win/win_new_floppy.c @@ -515,7 +515,7 @@ create_zip_sector_image(WCHAR *file_name, disk_size_t disk_size, uint8_t is_zdi, static int fdd_id, sb_part; static int file_type = 0; /* 0 = IMG, 1 = Japanese FDI, 2 = 86F */ -static wchar_t fd_file_name[512]; +static wchar_t fd_file_name[1024]; /* Show a MessageBox dialog. This is nasty, I know. --FvK */