align allocations to pointer size.

This commit is contained in:
cgd 1995-04-24 07:39:42 +00:00
parent b74ff41786
commit 4a83a3c060
1 changed files with 3 additions and 3 deletions

View File

@ -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)