aboutsummaryrefslogtreecommitdiffstats
path: root/ldlinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm9
1 files changed, 3 insertions, 6 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 39301e7f..e701b38b 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -1187,9 +1187,8 @@ parse_config:
pc_default: mov di,default_cmd ; "default" command
call getline
- mov si,auto_cmd ; add "auto"+null
- mov cx,auto_len
- rep movsb
+ xor al,al
+ stosb ; null-terminate
jmp short parse_config
pc_append: cmp word [VKernelCtr],byte 0 ; "append" command
@@ -3809,10 +3808,8 @@ A20Type dw A20_DUNNO ; A20 type unknown
; Stuff for the command line; we do some trickery here with equ to avoid
; tons of zeros appended to our file and wasting space
;
-linuxauto_cmd db 'linux '
-auto_cmd db 'auto',0
+linuxauto_cmd db 'linux auto',0
linuxauto_len equ $-linuxauto_cmd
-auto_len equ $-auto_cmd
boot_image db 'BOOT_IMAGE='
boot_image_len equ $-boot_image
align 4, db 0 ; For the good of REP MOVSD