From 88a07c82cece62903ae68e1e2c482d810bbf8560 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 29 Jul 1999 15:18:54 +0000 Subject: no_comment --- perl-install/partition_table_raw.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/partition_table_raw.pm') 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 ]); } -- cgit v1.2.1