From: hpa Date: Wed, 4 Feb 2004 04:07:55 +0000 (+0000) Subject: Fix jump into hyperspace X-Git-Tag: syslinux-3.11~445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00e7167012ca033be039c9ea6d9d880f833d6fed;p=platform%2Fupstream%2Fsyslinux.git Fix jump into hyperspace --- diff --git a/menu/startup.S16 b/menu/startup.S16 index 63f31c0..ccdc776 100644 --- a/menu/startup.S16 +++ b/menu/startup.S16 @@ -17,13 +17,13 @@ _start: /* Normalize the command line. At startup 0x80 = length and the command line starts at 0x81, but with whitespace */ movl $0x81,%esi - movzbl (0x80),%ebx + movzbw (0x80),%bx movb $0,(%bx,%si) /* Null-terminate the string */ 1: lodsb dec %al /* Stop on null */ cmp $31,%al /* Whitespace? */ - jbe 1 + jbe 1b dec %si /* Unskip first character */ /* Invoke _cstart */