diff options
author | Brad Hards <bradh@frogmouth.net> | 2005-08-28 09:31:53 +0000 |
---|---|---|
committer | Brad Hards <bradh@frogmouth.net> | 2005-08-28 09:31:53 +0000 |
commit | eb91b274245b4f5f5389bc9ddfde2c2806557665 (patch) | |
tree | 9068a1b6ef3dce7500687718011119a61c3146ce /goo/GooList.cc | |
parent | b3474fd5e0efc96b5814d86e0cdedf39387e7ae3 (diff) |
This part of my previous gmallocn merge patch was missing.
Diffstat (limited to 'goo/GooList.cc')
-rw-r--r-- | goo/GooList.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/goo/GooList.cc b/goo/GooList.cc index 15b2f5f6..3719ae2b 100644 --- a/goo/GooList.cc +++ b/goo/GooList.cc @@ -22,14 +22,14 @@ GooList::GooList() { size = 8; - data = (void **)gmalloc(size * sizeof(void*)); + data = (void **)gmallocn(size, sizeof(void*)); length = 0; inc = 0; } GooList::GooList(int sizeA) { size = sizeA; - data = (void **)gmalloc(size * sizeof(void*)); + data = (void **)gmallocn(size, sizeof(void*)); length = 0; inc = 0; } @@ -83,10 +83,10 @@ void *GooList::del(int i) { void GooList::expand() { size += (inc > 0) ? inc : size; - data = (void **)grealloc(data, size * sizeof(void*)); + data = (void **)greallocn(data, size, sizeof(void*)); } void GooList::shrink() { size -= (inc > 0) ? inc : size/2; - data = (void **)grealloc(data, size * sizeof(void*)); + data = (void **)greallocn(data, size, sizeof(void*)); } |