COMMON: Fix array size of 'name' argument in ProDOSFile constructor

This commit is contained in:
= committed 2023-03-01 16:41:16 -05:00
1 parent e5898db8c8
commit bb12e41290
1 file changed
+2 -2
+2 -2
View File
@@ -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 */