mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
installer: Cut off disk description if it gets too long
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user