diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-02 12:25:48 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-02 12:25:48 -0700 |
commit | 873e07fbf78344e0041f29892e08f31820da87a4 (patch) | |
tree | 2c962edacc67ac514cb9bfbf54b28df0b5d1126d | |
parent | 49029ca74eaf5d657d429d9c7c5085e5109d444a (diff) | |
download | syslinux.git-873e07fbf78344e0041f29892e08f31820da87a4.tar.gz syslinux.git-873e07fbf78344e0041f29892e08f31820da87a4.tar.xz syslinux.git-873e07fbf78344e0041f29892e08f31820da87a4.zip |
ui.inc: when looking for whitespace in kernel names look for <= ' '
Our somewhat generous definition of whitespace is less than or equal
to 32 (' '); we do not include 127 and 255 which are printable
characters in the PC codepages (in the latter case, NBSP.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | core/ui.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ui.inc b/core/ui.inc index d14245c5..c85383a6 100644 --- a/core/ui.inc +++ b/core/ui.inc @@ -435,7 +435,7 @@ vk_check: get_kernel: mov byte [KernelName+FILENAME_MAX],0 ; Zero-terminate filename/extension mov di,KernelName+4*IS_PXELINUX cmp byte [di],' ' - jb bad_kernel ; Missing kernel name + jbe bad_kernel ; Missing kernel name xor al,al mov cx,FILENAME_MAX-5 ; Need 4 chars + null repne scasb ; Scan for final null |