rem: if (user_strlcpy(filename, _filename, B_PATH_NAME_LENGTH) >= B_PATH_NAME_LENGTH) return B_NAME_TOO_LONG;
add: status_t error = ddm_strlcpy(filename, _filename, B_PATH_NAME_LENGTH); if (error) return error;
context: _kern_register_file_device(const char *_filename){	if (!_filename)		return B_BAD_VALUE;	char filename[B_PATH_NAME_LENGTH];	if (user_strlcpy(filename, _filename, B_PATH_NAME_LENGTH) >= B_PATH_NAME_LENGTH)		return B_NAME_TOO_LONG;	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	if (ManagerLocker locker = manager) {		if (KFileDiskDevice *device = manager->FindFileDevice(filename))			return device->ID();		return manager->CreateFileDevice(filename);	}	return B_ERROR;}