installer: Cut off disk description if it gets too long

This commit is contained in:
Michael Tremer
2015-02-26 13:54:07 +01:00
parent 8ae272aac3
commit 29afd40851

View File

@@ -322,6 +322,9 @@ struct hw_disk** hw_find_disks(struct hw* hw, const char* sourcedrive) {
"%s - %s", size_str, p);
}
// Cut off the description string after 40 characters
disk->description[41] = '\0';
*disks++ = disk;
if (--i == 0)