Select the correct memory copy routine from the C runtime...

This commit is contained in:
David Schmidt 2009-02-28 20:43:32 +00:00
parent 5637461d8a
commit 0d0bfde65a
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ DiskFSGutenberg::ReadCatalog(void)
dierr = fpImg->ReadTrackSector(catTrack, catSect, sctBuf);
if (dierr != kDIErrNone)
goto bail;
sprintf(fDiskVolumeName, (const char *)&sctBuf[6], kMaxVolNameLen);
memcpy(fDiskVolumeName, &sctBuf[6], kMaxVolNameLen); // Copy out the volume name; it should be the same on all catalog sectors.
fDiskVolumeName[kMaxVolNameLen] = 0x00;
DiskFSGutenberg::LowerASCII((unsigned char*)fDiskVolumeName, kMaxVolNameLen);
A2FileGutenberg::TrimTrailingSpaces(fDiskVolumeName);