Fixed a couple of stupid copy/paste errors

This commit is contained in:
mlong 2021-02-27 18:24:28 -06:00
parent db3ca0a8ca
commit dcefd2d2b6
4 changed files with 4 additions and 4 deletions

View File

@ -2877,7 +2877,7 @@ bail:
* If a pointer to a size_t is passed in, it will be filled with the
* raw filename length.
*/
const char* A2FileDOS::GetRawFileName(size_t* size = NULL) const {
const char* A2FileDOS::GetRawFileName(size_t* size) const {
if (size) {
*size = strlen(fRawFileName);
}

View File

@ -292,7 +292,7 @@ void DiskImg::SetCustomNibbleDescr(const NibbleDescr* pDescr)
}
}
const char* DiskImg::GetRawFileName(size_t* size) const { // get unmodified file name
const char* A2File::GetRawFileName(size_t* size) const { // get unmodified file name
if (size) {
*size = strlen(GetFileName());
}

View File

@ -1145,7 +1145,7 @@ DIError WrapperDiskCopy42::WriteHeader(GenericFD* pGFD, const DC42Header* pHeade
* magic string. To be safe, we only increment it if it starts with '-'.
* (Need access to a Macintosh to test this.)
*/
hdrBuf[0] = strlen(pHeader->diskName);
hdrBuf[0] = (uint8_t) (strlen(pHeader->diskName) % 0xff);
if (pHeader->diskName[0] == '-' && hdrBuf[0] < (kDC42NameLen-1))
hdrBuf[0]++;
memcpy(&hdrBuf[1], pHeader->diskName, hdrBuf[0]);

View File

@ -530,7 +530,7 @@ DIError A2FileRDOS::Open(A2FileDescr** ppOpenFile, bool readOnly,
* If a pointer to a size_t is passed in, it will be filled with the
* raw filename length.
*/
const char* A2FileRDOS::GetRawFileName(size_t* size = NULL) const {
const char* A2FileRDOS::GetRawFileName(size_t* size) const {
if (size) {
*size = strlen(fRawFileName);
}