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/3218d6908e31
branches:  trunk
changeset: 333684:3218d6908e31
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 cc3b39451097 -r 3218d6908e31 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