IMMORTAL: Update disk.cpp to use strncpy() instead of strcpy()

This commit is contained in:
Quote58 2022-10-31 05:31:58 -04:00 committed by Eugene Sandulenko
parent 3feb762d90
commit 8232bfd367

View File

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