summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mail/strings.c')
-rw-r--r--usr.bin/mail/strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/strings.c b/usr.bin/mail/strings.c
index f27b959..2f24f31 100644
--- a/usr.bin/mail/strings.c
+++ b/usr.bin/mail/strings.c
@@ -64,8 +64,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)
OpenPOWER on IntegriCloud