# HG changeset patch # User Gerd Moellmann # Date 989321101 0 # Node ID ceb79feb93aac8027f815d2fa007383ca3075888 # Parent 17db314acfc25925593e56f2e0e10d4c8e40f82c (enter_namespace): Fix reallocation of namespace_stack. diff -r 17db314acfc2 -r ceb79feb93aa lib-src/ebrowse.c --- 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; }