Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/stand/installboot move to the right offset



details:   https://anonhg.NetBSD.org/src/rev/0ffe855d5b77
branches:  trunk
changeset: 803826:0ffe855d5b77
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 13 17:46:49 2014 +0000

description:
move to the right offset

diffstat:

 sys/arch/atari/stand/installboot/installboot.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 540c5efc196b -r 0ffe855d5b77 sys/arch/atari/stand/installboot/installboot.c
--- a/sys/arch/atari/stand/installboot/installboot.c    Thu Nov 13 17:19:29 2014 +0000
+++ b/sys/arch/atari/stand/installboot/installboot.c    Thu Nov 13 17:46:49 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.29 2014/11/13 17:19:29 christos Exp $        */
+/*     $NetBSD: installboot.c,v 1.30 2014/11/13 17:46:49 christos Exp $        */
 
 /*
  * Copyright (c) 1995 Waldi Ravens
@@ -500,9 +500,9 @@
 
        /* set AHDI checksum */
        sum = 0;
-       memcpy(bb->bb_xxboot + 255, &sum, sizeof(sum));
+       memcpy(bb->bb_xxboot + 255 * sizeof(sum), &sum, sizeof(sum));
        sum = 0x1234 - abcksum(bb->bb_xxboot);
-       memcpy(bb->bb_xxboot + 255, &sum, sizeof(sum));
+       memcpy(bb->bb_xxboot + 255 * sizeof(sum), &sum, sizeof(sum));
 
        if (verbose) {
                printf("Primary   boot loader: %s\n", xxb);



Home | Main Index | Thread Index | Old Index