fix an alignment problem on SPARC and possibly Alpha too; millert@
This commit is contained in:
parent
917ed4d379
commit
4e0a609ff3
11
net/proftpd/patches/patch-ab
Normal file
11
net/proftpd/patches/patch-ab
Normal 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;
|
Loading…
Reference in New Issue
Block a user