1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-26 10:03:40 +03:00

scsi_id: remove trailing garbage from ID_SERIAL_SHORT

This commit is contained in:
Marco d'Itri 2006-11-27 17:13:19 +01:00 committed by Kay Sievers
parent 64e6d9dd70
commit 5284454d5f

View File

@ -732,6 +732,7 @@ static int do_scsi_page80_inquiry(struct sysfs_device *dev_scsi, int fd,
for (i = 4; i < len + 4; i++, ser_ind++)
serial[ser_ind] = buf[i];
memcpy(serial_short, &buf[4], len);
serial_short[len] = '\0';
return 0;
}