mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 11:04:51 -04:00
14 lines
325 B
Plaintext
14 lines
325 B
Plaintext
$NetBSD: patch-ao,v 1.2 2009/02/11 08:06:18 obache Exp $
|
|
|
|
--- cksum.c.orig 2003-12-06 13:39:35.000000000 +0000
|
|
+++ cksum.c
|
|
@@ -27,7 +27,7 @@ __u16 cksum(__u16 *buf, int nbytes)
|
|
|
|
if (nbytes == 1) {
|
|
oddbyte = 0;
|
|
- *((__u16 *) &oddbyte) = *(__u16 *) buf;
|
|
+ *((__u8 *) &oddbyte) = *(__u8 *) buf;
|
|
sum += oddbyte;
|
|
}
|
|
|