Commit 63ee1689 authored by Marvin Scholz's avatar Marvin Scholz
Browse files

mmc_device_darwin: Use MNAMELEN for bsd_name

parent 2787bcb0
......@@ -75,7 +75,7 @@ struct mmcdev {
SCSITaskDeviceInterface **taskInterface;
/* device short name (ie disk1) */
char bsd_name[128];
char bsd_name[MNAMELEN];
/* for mounting/unmounting the disc */
DADiskRef disk;
......@@ -295,7 +295,7 @@ static int iokit_find_service_matching (MMCDEV *mmc, io_service_t *servp) {
while (0 != (service = IOIteratorNext (deviceIterator))) {
CFStringRef data;
char name[128] = "";
char name[MNAMELEN] = "";
data = IORegistryEntrySearchCFProperty (service, kIOServicePlane, CFSTR("BSD Name"),
kCFAllocatorDefault, kIORegistryIterateRecursively);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment