rootSnapshotName = IORegistryEntryCreateCFProperty(chosen, CFSTR("root-snapshot-name"), kCFAllocatorDefault, 0);
if (rootSnapshotName != NULL && CFGetTypeID(rootSnapshotName) == CFDataGetTypeID()) {
rootSnapshotName = IORegistryEntryCreateCFProperty(chosen, CFSTR("root-snapshot-name"), kCFAllocatorDefault, 0);
if (rootSnapshotName != NULL && CFGetTypeID(rootSnapshotName) == CFDataGetTypeID()) {
- CFStringRef snapshotString = CFStringCreateFromExternalRepresentation(kCFAllocatorDefault, rootSnapshotName, kCFStringE ncodingUTF8);
+ CFStringRef snapshotString = CFStringCreateFromExternalRepresentation(kCFAllocatorDefault, rootSnapshotName, kCFStringEncodingUTF8);
CFRelease(rootSnapshotName);
char buffer[100];
const char *ptr = CFStringGetCStringPtr(snapshotString, kCFStringEncodingUTF8);
CFRelease(rootSnapshotName);
char buffer[100];
const char *ptr = CFStringGetCStringPtr(snapshotString, kCFStringEncodingUTF8);
if (manifestHash == NULL || CFGetTypeID(manifestHash) != CFDataGetTypeID()) {
fprintf(stderr, "Unable to read boot-manifest-hash or root-snapshot-name\n");
if (manifestHash == NULL || CFGetTypeID(manifestHash) != CFDataGetTypeID()) {
fprintf(stderr, "Unable to read boot-manifest-hash or root-snapshot-name\n");