1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

(enter_namespace): Fix reallocation of

namespace_stack.
This commit is contained in:
Gerd Moellmann 2001-05-08 11:25:01 +00:00
parent 67f2e119e3
commit 04dae60b46

View File

@ -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;
}