mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
COMMON: Fix array size of 'name' argument in ProDOSFile constructor
This commit is contained in:
1 parent
e5898db8c8
commit
bb12e41290
1 file changed
+2
-2
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user