[syslinux:master] hdt: Fixing array size
syslinux-bot for Erwan Velu
erwan.velu at free.fr
Thu Dec 22 13:18:09 PST 2011
Commit-ID: 2d754907b6e824088b74a156b0dc2017323a2013
Gitweb: http://www.syslinux.org/commit/2d754907b6e824088b74a156b0dc2017323a2013
Author: Erwan Velu <erwan.velu at free.fr>
AuthorDate: Mon, 11 Jul 2011 22:10:34 +0200
Committer: Erwan Velu <erwan.velu at free.fr>
CommitDate: Mon, 11 Jul 2011 22:10:34 +0200
hdt: Fixing array size
Bootable flags shall be 6 char to let one NULL terminating char.
Thx Gerth for reporting this.
---
com32/hdt/hdt-dump-disks.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c
index d851bf8..ef8cf22 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;
More information about the Syslinux-commits
mailing list