From bb12e41290fc6144386d8dad5bef3c00a376b38b Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 1 Mar 2023 16:35:22 -0500 Subject: [PATCH] COMMON: Fix array size of 'name' argument in ProDOSFile constructor --- common/formats/prodos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/formats/prodos.cpp b/common/formats/prodos.cpp index 7e3192c5f3d..9739ecac21a 100644 --- a/common/formats/prodos.cpp +++ b/common/formats/prodos.cpp @@ -25,13 +25,13 @@ namespace Common { // --- ProDOSFile methods --- -ProDOSFile::ProDOSFile(char name[15], uint8 type, uint16 tBlk, uint32 eof, uint16 bPtr, Common::File *disk) +ProDOSFile::ProDOSFile(char name[16], uint8 type, uint16 tBlk, uint32 eof, uint16 bPtr, Common::File *disk) : _type(type) , _totalBlocks(tBlk) , _eof(eof) , _blockPtr(bPtr) , _disk(disk) { - strncpy(_name, name, 15); + strncpy(_name, name, 16); } /* For debugging purposes, this prints the meta data of a file */