add: partitionInfo->volume_name[i+1] = 0; }
context: iso9660_fs_identify(int deviceFD, struct extended_partition_info *partitionInfo,                    float *priority){	bool result = false;	uchar *buffer = NULL;	uint32 blockSize = partitionInfo->info.logical_block_size;	bool exit = false;	off_t offset = partitionInfo->info.offset + 16*blockSize;	status_t error = B_OK;		TRACE(("%s: identify(%d, %p)\n", kModuleDebugName, deviceFD,		   partitionInfo));		   	// Read through the volume descriptors looking for a primary descriptor.	// If for some reason there are more than one primary descriptor, the	// volume name from the last encountered descriptor will be used.	while (!error && !exit) {		iso9660_common_volume_descriptor *common = NULL;				// Read the block containing the current descriptor		error = read_block(deviceFD, offset, blockSize, &buffer);		offset += blockSize;		if (!error) {			common = (iso9660_common_volume_descriptor*)buffer;			error = check_common_volume_descriptor(common);		}				// Handle each type of descriptor appropriately		if (!error) {			TRACE(("%s: found %s descriptor\n", kModuleDebugName,			       volume_descriptor_type_to_string(common->volume_descriptor_type)));			switch (common->volume_descriptor_type) {				case ISO9660VD_BOOT:					break;									case ISO9660VD_PRIMARY:				{					int i;					iso9660_primary_volume_descriptor *primary = (iso9660_primary_volume_descriptor*)buffer;										dump_primary_volume_descriptor(primary, "  ", true);										if (partitionInfo->file_system_short_name)						strcpy(partitionInfo->file_system_short_name, "iso9660");					if (partitionInfo->file_system_long_name)						strcpy(partitionInfo->file_system_long_name, "iso9660 CD-ROM File System");					// Cut off any trailing spaces from the volume id. Note					// that this allows for spaces INSIDE the volume id, even					// though that's not technically allowed by the standard;					// this was necessary to support certain RedHat 6.2 CD-ROMs					// from a certain Linux company who shall remain unnamed. ;-)					for (i = ISO9660_VOLUME_IDENTIFIER_LENGTH-1; i >= 0; i--) {						if (primary->volume_identifier[i] != 0x20)							break;					}					if (partitionInfo->volume_name)						strncpy(partitionInfo->volume_name, primary->volume_identifier, i+1);					if (priority)						*priority = 0;					result = true;					break;				}									case ISO9660VD_SUPPLEMENTARY:					break;									case ISO9660VD_PARTITION:					break;									case ISO9660VD_TERMINATOR:					exit = true;					break;									default:					break;			}		}		if (buffer) {			free(buffer);			buffer = NULL;		}		}		switch (error) {		case B_OK:			break;					case B_BAD_DATA:			TRACE(("%s: identify: bad signature\n", kModuleDebugName));			break;				default:			TRACE(("%s: identify error: 0x%lx\n", kModuleDebugName,		           error));		    break;	}	return result;}