summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-04 04:07:55 +0000
committerhpa <hpa>2004-02-04 04:07:55 +0000
commit00e7167012ca033be039c9ea6d9d880f833d6fed (patch)
treea59b8609c18820c6f0480bf1bef3209eacaf3185
parent8791f49703e23a6810d82e11ce2a1429160e8a7f (diff)
downloadsyslinux-00e7167012ca033be039c9ea6d9d880f833d6fed.tar.gz
Fix jump into hyperspacesyslinux-2.09-pre9
-rw-r--r--menu/startup.S164
1 files changed, 2 insertions, 2 deletions
diff --git a/menu/startup.S16 b/menu/startup.S16
index 63f31c00..ccdc776b 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 */