diff options
author | Matt Wilson <msw@redhat.com> | 2000-07-13 16:42:30 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-07-13 16:42:30 +0000 |
commit | 85b92c9f0a92aeaece92cffe2a657bf0c4cc1247 (patch) | |
tree | 7f9ca00db5d0f57d2dedf299c211e3078812abc8 /loader | |
parent | 1ad10775ce9f3ddb85dd6ade4106aa729273275b (diff) | |
download | anaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.tar.gz anaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.tar.xz anaconda-85b92c9f0a92aeaece92cffe2a657bf0c4cc1247.zip |
io=0x prefixed
Diffstat (limited to 'loader')
-rw-r--r-- | loader/devices.c | 5 |
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; } |