diff options
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r-- | perl-install/partition_table_raw.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index d85789a50..973961f5a 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -93,9 +93,9 @@ sub write($$$) { compute_CHS($hd, $_); local $_->{start} = $_->{local_start} || 0; $_->{active} ||= 0; $_->{type} ||= 0; $_->{size} ||= 0; # for no warning - syswrite F, pack($format, @$_{@fields}) or return 0; + syswrite F, pack($format, @$_{@fields}), psizeof($format) or return 0; } - syswrite F, $magic or return 0; + syswrite F, $magic, length $magic or return 0; 1; } sub zero_MBR($) { &write($_[0], 0, [ {} x $nb_primary ]); } |