mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
IMMORTAL: Update disk.cpp to use strncpy() instead of strcpy()
This commit is contained in:
parent
3feb762d90
commit
8232bfd367
@ -34,7 +34,7 @@ ProDOSFile::ProDOSFile(char name[15], uint8 type, uint16 tBlk, uint32 eof, uint1
|
||||
, _eof(eof)
|
||||
, _blockPtr(bPtr)
|
||||
, _disk(disk) {
|
||||
strcpy(_name, name);
|
||||
strncpy(_name, name, 15);
|
||||
}
|
||||
|
||||
/* For debugging purposes, this prints the meta data of a file */
|
||||
|
Loading…
x
Reference in New Issue
Block a user