Mercurial > emacs
changeset 37615:ceb79feb93aa
(enter_namespace): Fix reallocation of
namespace_stack.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 08 May 2001 11:25:01 +0000 |
parents | 17db314acfc2 |
children | 509643403c94 |
files | lib-src/ebrowse.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ebrowse.c Tue May 08 11:18:48 2001 +0000 +++ b/lib-src/ebrowse.c Tue May 08 11:25:01 2001 +0000 @@ -1156,8 +1156,9 @@ 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; }