aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-rw-r--r--com32/gpllib/disk/mbrs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index b5e271b7..6719d8de 100644
--- a/com32/gpllib/disk/mbrs.c
+++ b/com32/gpllib/disk/mbrs.c
@@ -43,9 +43,9 @@ void get_mbr_string(const uint32_t label, char* buffer, const int buffer_size)
case 0xeb5e: strncpy(buffer, "Grub4Dos", buffer_size - 1); break;
case 0xfa31:
/* We need more than 2 bytes */
- if ((label >> 8) & 0xff == 0xc9)
+ if (((label >> 8) & 0xff) == 0xc9)
strncpy(buffer, "Master Boot LoaDeR", buffer_size - 1);
- else if ((label >> 8) & 0xff == 0xc0)
+ else if (((label >> 8) & 0xff) == 0xc0)
strncpy(buffer, "Syslinux", buffer_size - 1);
else
strncpy(buffer, "Unknown mbr", buffer_size - 1); break;