summaryrefslogtreecommitdiffstats
path: root/loader/net.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-23 10:21:25 -0400
committerChris Lumens <clumens@redhat.com>2008-10-23 10:23:06 -0400
commitb69ad6227daa1114488345b14d7cb67937e24021 (patch)
tree89be3c2d93643c78507162b8bb6c59bdc4d19c03 /loader/net.c
parent958fd99b44792260d5a8892377eb4ca1d71bdc9a (diff)
downloadanaconda-b69ad6227daa1114488345b14d7cb67937e24021.tar.gz
anaconda-b69ad6227daa1114488345b14d7cb67937e24021.tar.xz
anaconda-b69ad6227daa1114488345b14d7cb67937e24021.zip
Don't display the entire lengthy device description (#467825).
Diffstat (limited to 'loader/net.c')
-rw-r--r--loader/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/net.c b/loader/net.c
index f69a265c4..6f660bb77 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1556,7 +1556,7 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) {
if (devs[i]->description) {
deviceNames[deviceNums] = alloca(strlen(devs[i]->device) +
strlen(devs[i]->description) + 4);
- sprintf(deviceNames[deviceNums],"%s - %s",
+ sprintf(deviceNames[deviceNums],"%s - %.50s",
devs[i]->device, devs[i]->description);
if (strlen(deviceNames[deviceNums]) > max)
max = strlen(deviceNames[deviceNums]);