diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-22 13:41:07 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-22 13:41:07 -0400 |
commit | 81e4821f2a9507238cfda0c665933eb8a23c9c5b (patch) | |
tree | 1d99fe1dc737a4967de7ccc4728b2b1391184af9 /core/parseconfig.inc | |
parent | 559ea7abec1acb497eca0bd74a583713e425302b (diff) | |
download | syslinux-81e4821f2a9507238cfda0c665933eb8a23c9c5b.tar.gz |
Simplify and fix label string scanning
Simplify and fix bugs in the code to store and match label names
without filename mangling.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/parseconfig.inc')
-rw-r--r-- | core/parseconfig.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/parseconfig.inc b/core/parseconfig.inc index 843a733f..4a38c35d 100644 --- a/core/parseconfig.inc +++ b/core/parseconfig.inc @@ -312,10 +312,8 @@ pc_label: call commit_vk ; Commit any current vkernel lodsb cmp al,' ' jna .done - mov [di],al - inc di - dec cx - jnz .loop + stosb + loop .loop .done: mov byte [VKernel],1 ; We've seen a "label" statement mov si,VKernelBuf+vk_vname ; By default, rname == vname |