[Scummvm-git-logs] scummvm master -> bb12e41290fc6144386d8dad5bef3c00a376b38b

Quote58 noreply at scummvm.org
Wed Mar 1 21:46:04 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

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


Commit: bb12e41290fc6144386d8dad5bef3c00a376b38b
    https://github.com/scummvm/scummvm/commit/bb12e41290fc6144386d8dad5bef3c00a376b38b
Author: = (=)
Date: 2023-03-01T16:41:16-05:00

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

Changed paths:
    common/formats/prodos.cpp


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 */




More information about the Scummvm-git-logs mailing list