aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-05-08 11:25:01 +0000
committerGerd Moellmann <[email protected]>2001-05-08 11:25:01 +0000
commit04dae60b46bc1388ded2ffadb2dc6da5db1f31be (patch)
tree471512369c99a9bef7e1feb8eccf4b03a661c6f6 /lib-src
parent67f2e119e3c9fcc9bfc1341d08a12220f737382c (diff)
(enter_namespace): Fix reallocation of
namespace_stack.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ebrowse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index bed64376a2..90388273ce 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -1156,8 +1156,9 @@ enter_namespace (name)
if (namespace_sp == namespace_stack_size)
{
int size = max (10, 2 * namespace_stack_size);
- namespace_stack = (struct sym **) xrealloc ((void *)namespace_stack,
- size);
+ namespace_stack
+ = (struct sym **) xrealloc ((void *)namespace_stack,
+ size * sizeof *namespace_stack);
namespace_stack_size = size;
}