ui.inc: when looking for whitespace in kernel names look for <= ' '
authorH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 19:25:48 +0000 (12:25 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 19:25:48 +0000 (12:25 -0700)
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>
core/ui.inc

index d14245c..c85383a 100644 (file)
@@ -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