Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern Allocating a byte-array and then accessing i...
details: https://anonhg.NetBSD.org/src/rev/d3f1e9f0f6fc
branches: trunk
changeset: 472816:d3f1e9f0f6fc
user: eeh <eeh%NetBSD.org@localhost>
date: Sun May 09 00:22:46 1999 +0000
description:
Allocating a byte-array and then accessing it as 32-bit integers just won't work
on any machine that has alignment restrictions.
diffstat:
sys/lib/libkern/sha1.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1afcfcc93a5c -r d3f1e9f0f6fc sys/lib/libkern/sha1.c
--- a/sys/lib/libkern/sha1.c Sun May 09 00:00:20 1999 +0000
+++ b/sys/lib/libkern/sha1.c Sun May 09 00:22:46 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sha1.c,v 1.3 1998/09/12 08:31:23 ragge Exp $ */
+/* $NetBSD: sha1.c,v 1.4 1999/05/09 00:22:46 eeh Exp $ */
/* $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ */
/*
@@ -75,7 +75,7 @@
CHAR64LONG16 *block;
#ifdef SHA1HANDSOFF
- static u_char workspace[64];
+ static u_int workspace[16];
block = (CHAR64LONG16 *)workspace;
(void)memcpy(block, buffer, 64);
#else
Home |
Main Index |
Thread Index |
Old Index