aboutsummaryrefslogtreecommitdiffstats
path: root/mtools
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-19 00:25:14 +0000
committerhpa <hpa>2004-12-19 00:25:14 +0000
commitb544013ca57aea35b878e380de19c22ac1abb40e (patch)
treecf3f7ccadc1bddbb73c778441a8bdf5020ff6159 /mtools
parentfc50ce2dd9f4de675605169495a980426fb97181 (diff)
downloadsyslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.tar.gz
syslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.tar.xz
syslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.zip
Beef up the sanity checking of the boot sector. For really better checking
we should be checking the FAT for the media signature, too.
Diffstat (limited to 'mtools')
-rw-r--r--mtools/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index 004bca3b..20111c62 100644
--- a/mtools/syslinux.c
+++ b/mtools/syslinux.c
@@ -193,7 +193,7 @@ int main(int argc, char *argv[])
/*
* Check to see that what we got was indeed an MS-DOS boot sector/superblock
*/
- if( !syslinux_check_bootsect(sectbuf,&errmsg) ) {
+ if( (errmsg = syslinux_check_bootsect(sectbuf)) ) {
fprintf(stderr, "%s: %s\n", program, errmsg);
exit(1);
}