rem: if (user_strlcpy(diskSystemName, _diskSystemName, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH || 	user_strlcpy(name, _name, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH) return B_NAME_TOO_LONG;
add: status_t error = ddm_strlcpy(diskSystemName, _diskSystemName, B_OS_NAME_LENGTH); if (!error) error = ddm_strlcpy(name, _name, B_OS_NAME_LENGTH); if (error) return error;
context: _kern_validate_initialize_partition(partition_id partitionID,									int32 changeCounter,									const char *_diskSystemName, char *_name,									const char *_parameters){	if (!_diskSystemName || !_name)		return B_BAD_VALUE;	char diskSystemName[B_OS_NAME_LENGTH];	char name[B_OS_NAME_LENGTH];	char *parameters = NULL;	if (user_strlcpy(diskSystemName, _diskSystemName, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH	    || 	user_strlcpy(name, _name, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH)		return B_NAME_TOO_LONG;	if (_parameters) {		parameters = static_cast<char*>(malloc(strlen(_parameters)+1));		if (parameters)			user_strcpy(parameters, _parameters);		else			return B_NO_MEMORY;	}	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	// get the partition	KPartition *partition = manager->ReadLockPartition(partitionID);	status_t error = partition ? B_OK : B_ENTRY_NOT_FOUND;	if (!error) {		PartitionRegistrar registrar1(partition, true);		PartitionRegistrar registrar2(partition->Device(), true);		DeviceReadLocker locker(partition->Device(), true);		error = validate_initialize_partition(partition, changeCounter,											  diskSystemName, name, parameters);	}	free(parameters);	return error;											  }