mirror of
https://github.com/fadden/ciderpress.git
synced 2024-10-04 04:55:51 +00:00
Fixed a couple of stupid copy/paste errors
This commit is contained in:
parent
db3ca0a8ca
commit
dcefd2d2b6
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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]);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user