summaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/syslinux.c b/unix/syslinux.c
index 362fcc35..60d114f6 100644
--- a/unix/syslinux.c
+++ b/unix/syslinux.c
@@ -240,7 +240,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", device, errmsg);
exit(1);
}