summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 5954f3113..75e43eea2 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -192,7 +192,7 @@ sub removeFromList($$$) {
$end > $list->[$i + 1] and die $err;
if ($end == $list->[$i + 1]) {
#- the free block is just the same size, removing it
- splice(@$list, 0, 2);
+ splice(@$list, $i, 2);
} else {
#- the free block now start just after this block
$list->[$i] = $end;