From 28bbb408354f10a92cf563dc67cb0fefb5262a19 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 13 May 1987 14:10:11 +0000 Subject: [PATCH] bug fix in getarea/freearea --- util/ass/asscm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/ass/asscm.c b/util/ass/asscm.c index 0ef2f4322..0654f9d02 100644 --- a/util/ass/asscm.c +++ b/util/ass/asscm.c @@ -49,6 +49,7 @@ area_t getarea(size) unsigned size ; { unsigned rqsize ; char *malloc() ; + size = ((size + (sizeof(short) - 1)) / sizeof(short)) * sizeof(short); #ifdef MEMUSE m_used += size ; m_free -= size ; @@ -87,6 +88,7 @@ area_t getarea(size) unsigned size ; { freearea(ptr,size) register area_t ptr ; unsigned size ; { register struct freeblock *c_ptr, *l_ptr ; + size = ((size + (sizeof(short) - 1)) / sizeof(short)) * sizeof(short); #ifdef MEMUSE m_free += size ; m_used -= size ;