aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/util/modrom.pl
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/util/modrom.pl')
-rwxr-xr-xgpxe/src/util/modrom.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpxe/src/util/modrom.pl b/gpxe/src/util/modrom.pl
index 695468c2..cdac0b97 100755
--- a/gpxe/src/util/modrom.pl
+++ b/gpxe/src/util/modrom.pl
@@ -131,9 +131,9 @@ sub writerom ($$) {
sub checksum ($) {
my ($romref) = @_;
- substr($$romref, 5, 1) = "\x00";
+ substr($$romref, 6, 1) = "\x00";
my $sum = unpack('%8C*', $$romref);
- substr($$romref, 5, 1) = chr(256 - $sum);
+ substr($$romref, 6, 1) = chr(256 - $sum);
# Double check
$sum = unpack('%8C*', $$romref);
if ($sum != 0) {