projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df32d4
)
hdt: Fixing array size
author
Erwan Velu
<erwan.velu@free.fr>
Mon, 11 Jul 2011 20:10:34 +0000
(22:10 +0200)
committer
Erwan Velu
<erwan.velu@free.fr>
Mon, 11 Jul 2011 20:10:34 +0000
(22:10 +0200)
Bootable flags shall be 6 char to let one NULL terminating char.
Thx Gerth for reporting this.
com32/hdt/hdt-dump-disks.c
patch
|
blob
|
history
diff --git
a/com32/hdt/hdt-dump-disks.c
b/com32/hdt/hdt-dump-disks.c
index
d851bf8
..
ef8cf22
100644
(file)
--- 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;