parseconfig: fix invalid mangle_name assumption
authorH. Peter Anvin <hpa@zytor.com>
Wed, 16 Jul 2008 18:25:57 +0000 (11:25 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 16 Jul 2008 18:25:57 +0000 (11:25 -0700)
Remove assumption that mangle_name leaves DI beyond the end of the
buffer.  This was true back when the mangled filename buffer was an
11-byte DOS filename, but it is definitely not true anymore.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/parseconfig.inc

index e004cab..2975a8b 100644 (file)
@@ -311,7 +311,7 @@ pc_label:   call commit_vk                  ; Commit any current vkernel
                call mangle_name                ; Mangle virtual name
                mov byte [VKernel],1            ; We've seen a "label" statement
                mov si,VKernelBuf+vk_vname      ; By default, rname == vname
-               ; mov di,VKernelBuf+vk_rname    ; -- already set
+               mov di,VKernelBuf+vk_rname
                mov cx,FILENAME_MAX
                rep movsb
                 mov si,AppendBuf               ; Default append==global append