From owner-freebsd-alpha Mon Nov 30 07:05:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05824 for freebsd-alpha-outgoing; Mon, 30 Nov 1998 07:05:57 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from mail.sat.t.u-tokyo.ac.jp (dryad.sat.t.u-tokyo.ac.jp [133.11.156.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05819 for ; Mon, 30 Nov 1998 07:05:54 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.156.43]) by mail.sat.t.u-tokyo.ac.jp (8.8.6/3.4Wbeta6-SAT1.0) with ESMTP id AAA18389 for ; Tue, 1 Dec 1998 00:05:40 +0900 (JST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from localhost by ett.sat.t.u-tokyo.ac.jp (8.8.8/sat-V0.6) id AAA12806; Tue, 1 Dec 1998 00:05:40 +0900 (JST) To: freebsd-alpha@FreeBSD.ORG Subject: /usr/bin/mail X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX Date: Tue, 01 Dec 1998 00:05:39 +0900 From: Hidetoshi Shimokawa X-Dispatcher: imput version 980905(IM100) Lines: 34 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Next, a patch to prevent /usr/bin/mail from unaligned access, obtained from NetBSD. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp Index: strings.c =================================================================== RCS file: /pub/FreeBSD-CVS/src/usr.bin/mail/strings.c,v retrieving revision 1.1.1.1 diff -c -r1.1.1.1 strings.c *** strings.c 1994/05/27 12:32:07 1.1.1.1 --- strings.c 1998/11/29 06:41:14 *************** *** 64,71 **** int index; s = size; ! s += 3; ! s &= ~03; index = 0; for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) { if (sp->s_topFree == NOSTR && (STRINGSIZE << index) >= s) --- 64,71 ---- int index; s = size; ! s += (sizeof (char *) - 1); ! s &= ~(sizeof (char *) - 1); index = 0; for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) { if (sp->s_topFree == NOSTR && (STRINGSIZE << index) >= s) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message