Mercurial > emacs
diff lib-src/ebrowse.c @ 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 | 21c61917df26 |
| children | 3960fdb54cfd |
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; }
