aboutsummaryrefslogtreecommitdiffstats
path: root/runkernel.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-22 13:40:56 +0000
committerhpa <hpa>2004-12-22 13:40:56 +0000
commit72d098b31e57e5ae81d9a4923608f12014c1d36f (patch)
tree1a53e8b9b7c51e3e11d601dfa905374013647f98 /runkernel.inc
parentea742162cc082fec3a3164d75fc5af67ceb7ef0a (diff)
downloadsyslinux-3.00-pre2.tar.gz
syslinux-3.00-pre2.tar.xz
syslinux-3.00-pre2.zip
Detect null filenames correctly (problems in both pxelinux and extlinux)syslinux-3.00-pre2
Diffstat (limited to 'runkernel.inc')
-rw-r--r--runkernel.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runkernel.inc b/runkernel.inc
index 148d083b..7a71350c 100644
--- a/runkernel.inc
+++ b/runkernel.inc
@@ -162,7 +162,7 @@ get_next_opt: lodsb
push si ; mangle_dir mangles si
call mangle_name ; Mangle ramdisk name
pop si
- cmp byte [es:InitRD],NULLFILE ; Null filename?
+ cmp byte [es:InitRD+NULLOFFSET],NULLFILE ; Null filename?
seta byte [es:initrd_flag] ; Set flag if not
not_initrd: pop es ; Restore ES -> real_mode_seg
skip_this_opt: lodsb ; Load from command line