fix an alignment problem on SPARC and possibly Alpha too; millert@

This commit is contained in:
brad 1999-09-09 21:17:22 +00:00
parent 917ed4d379
commit 4e0a609ff3

View File

@ -0,0 +1,11 @@
--- src/pool.c.orig Thu Sep 9 17:01:07 1999
+++ src/pool.c Thu Sep 9 17:02:36 1999
@@ -337,6 +337,8 @@
*/
strncpy(&new_pool->symbol,symbol,strlen(symbol));
blok->h.first_avail += strlen(symbol);
+ /* must maintain alignment */
+ blok->h.first_avail += (strlen(symbol) / POOL_HDR_BYTES + 1) * POOL_HDR_BYTES;
}
new_pool->free_first_avail = blok->h.first_avail;