summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-05-25 15:35:53 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-05-25 15:35:53 +0100
commit272218d09ee73ea2c5d84c2cf8bb4c024a7a0219 (patch)
treed2b453874688c663dc4cc5d1dcfde44cbbd7e3de /com32
parent487b67a9ce9f6b338a28d4ab71a7ee313ba35762 (diff)
downloadsyslinux-272218d09ee73ea2c5d84c2cf8bb4c024a7a0219.tar.gz
ldlinux: Fix "prompt" config option parsing
Previously, we were looking for the value of the prompt option 8 characters after the first 'p', clearly since "prompt" is only 6 characters we should be searching after the sixth character. I noticed this bug when specifying "prompt 1" in my config file and Syslinux still tried to boot the default kernel. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/elflink/ldlinux/readconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
index 8ded92ac..1c8cac30 100644
--- a/com32/elflink/ldlinux/readconfig.c
+++ b/com32/elflink/ldlinux/readconfig.c
@@ -1105,7 +1105,7 @@ do_include:
else if (looking_at(p, "implicit")) {
allowimplicit = atoi(skipspace(p + 8));
} else if (looking_at(p, "prompt")) {
- forceprompt = atoi(skipspace(p + 8));
+ forceprompt = atoi(skipspace(p + 6));
} else if (looking_at(p, "console")) {
displaycon = atoi(skipspace(p + 7));
} else if (looking_at(p, "allowoptions")) {