aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2011-07-11 22:10:34 +0200
committerErwan Velu <erwan.velu@free.fr>2011-07-11 22:10:34 +0200
commit2d754907b6e824088b74a156b0dc2017323a2013 (patch)
treeb710cb002366d3eee8e8b7291f9976c3c1b4e3c7 /com32/hdt
parent7df32d4330804bd461993f5ff6619ba7c5ca465c (diff)
downloadsyslinux-2d754907b6e824088b74a156b0dc2017323a2013.tar.gz
syslinux-2d754907b6e824088b74a156b0dc2017323a2013.tar.xz
syslinux-2d754907b6e824088b74a156b0dc2017323a2013.zip
hdt: Fixing array size
Bootable flags shall be 6 char to let one NULL terminating char. Thx Gerth for reporting this.
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump-disks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c
index d851bf87..ef8cf220 100644
--- a/com32/hdt/hdt-dump-disks.c
+++ b/com32/hdt/hdt-dump-disks.c
@@ -42,7 +42,7 @@ static void show_partition_information(struct driveinfo *drive_info,
char ostype[64]={0};
char *parttype;
unsigned int start, end;
- char bootable[5] = {0};
+ char bootable[6] = {0};
int i = nb_partitions_seen;
start = partition_offset;