(void)snprintf((char*)&attrRec->attrData[0],
sizeof(attrdata) - offsetof(HFSPlusAttrData, attrData),
"%lu", (unsigned long)(p->correct));
(void)snprintf((char*)&attrRec->attrData[0],
sizeof(attrdata) - offsetof(HFSPlusAttrData, attrData),
"%lu", (unsigned long)(p->correct));
bt_data.bufferAddress = attrRec;
recsize = sizeof(HFSPlusAttrData) - 2 + attrRec->attrSize + ((attrRec->attrSize & 1) ? 1 : 0);
bt_data.itemSize = recsize;
bt_data.bufferAddress = attrRec;
recsize = sizeof(HFSPlusAttrData) - 2 + attrRec->attrSize + ((attrRec->attrSize & 1) ? 1 : 0);
bt_data.itemSize = recsize;
if (rec.recordType != kHFSPlusFileRecord) {
retval = IntError(GPtr, R_IntErr);
} else {
if (rec.recordType != kHFSPlusFileRecord) {
retval = IntError(GPtr, R_IntErr);
} else {
retval = ReplaceBTreeRecord(GPtr->calculatedCatalogFCB, &key, kNoHint, &rec, recsize, &hint);
}
}
retval = ReplaceBTreeRecord(GPtr->calculatedCatalogFCB, &key, kNoHint, &rec, recsize, &hint);
}
}
result = ReplaceBTreeRecord( GPtr->calculatedCatalogFCB, &foundKey, hint,
&record, recSize, &hint);
if (result) {
result = ReplaceBTreeRecord( GPtr->calculatedCatalogFCB, &foundKey, hint,
&record, recSize, &hint);
if (result) {
// no way to find the original name and this should make it unique within our
// lost+found directory.
sprintf( myString, "%ld", (long)theObjID );
// no way to find the original name and this should make it unique within our
// lost+found directory.
sprintf( myString, "%ld", (long)theObjID );