HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f2e11
)
(enter_namespace): Fix reallocation of
author
Gerd Moellmann
<gerd@gnu.org>
Tue, 8 May 2001 11:25:01 +0000
(11:25 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Tue, 8 May 2001 11:25:01 +0000
(11:25 +0000)
namespace_stack.
lib-src/ebrowse.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/ebrowse.c
b/lib-src/ebrowse.c
index
bed6437
..
9038827
100644
(file)
--- 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;
}