summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-13 16:42:30 +0000
committerMatt Wilson <msw@redhat.com>2000-07-13 16:42:30 +0000
commit85b92c9f0a92aeaece92cffe2a657bf0c4cc1247 (patch)
tree7f9ca00db5d0f57d2dedf299c211e3078812abc8 /loader
parent1ad10775ce9f3ddb85dd6ade4106aa729273275b (diff)
downloadanaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.tar.gz
anaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.tar.xz
anaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.zip
io=0x prefixed
Diffstat (limited to 'loader')
-rw-r--r--loader/devices.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loader/devices.c b/loader/devices.c
index 098103019..5911ae488 100644
--- a/loader/devices.c
+++ b/loader/devices.c
@@ -55,9 +55,10 @@ static int getModuleArgs(struct moduleInfo * mod, char *** argPtr) {
for (i = 0; i < mod->numArgs; i++) {
entries[i].text = mod->args[i].description;
if (mod->args[i].arg) {
- values[i] = malloc(strlen(mod->args[i].arg) + 2);
+ int io = !strcmp (mod->args[i].arg, "io");
+ values[i] = malloc(strlen(mod->args[i].arg) + (io ? 4 : 2));
strcpy(values[i], mod->args[i].arg);
- strcat(values[i], "=");
+ strcat(values[i], (io ? "=0x" : "="));
} else {
values[i] = NULL;
}