summaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-04-24 07:39:42 +0000
committercgd <cgd@NetBSD.org>1995-04-24 07:39:42 +0000
commit4a83a3c0609beb7d64cda41d4f221018a09602ee (patch)
tree8fdf3e8e364cd6ecdb7222cdcdd8ddd676590b4f /usr.bin/mail
parentb74ff41786e9b70b78065f76e5ea82271b6f1d63 (diff)
align allocations to pointer size.
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/strings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/strings.c b/usr.bin/mail/strings.c
index f3d53c8b6d5..0c916f0d2f5 100644
--- a/usr.bin/mail/strings.c
+++ b/usr.bin/mail/strings.c
@@ -33,7 +33,7 @@
#ifndef lint
static char sccsid[] = "from: @(#)strings.c 8.1 (Berkeley) 6/6/93";
-static char rcsid[] = "$Id: strings.c,v 1.3 1994/06/29 05:09:43 deraadt Exp $";
+static char rcsid[] = "$Id: strings.c,v 1.4 1995/04/24 07:39:42 cgd Exp $";
#endif /* not lint */
/*
@@ -65,8 +65,8 @@ salloc(size)
int index;
s = size;
- s += 3;
- s &= ~03;
+ 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)