Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
04dae60b
Commit
04dae60b
authored
May 08, 2001
by
Gerd Moellmann
Browse files
(enter_namespace): Fix reallocation of
namespace_stack.
parent
67f2e119
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib-src/ebrowse.c
lib-src/ebrowse.c
+3
-2
No files found.
lib-src/ebrowse.c
View file @
04dae60b
...
@@ -1156,8 +1156,9 @@ enter_namespace (name)
...
@@ -1156,8 +1156,9 @@ enter_namespace (name)
if
(
namespace_sp
==
namespace_stack_size
)
if
(
namespace_sp
==
namespace_stack_size
)
{
{
int
size
=
max
(
10
,
2
*
namespace_stack_size
);
int
size
=
max
(
10
,
2
*
namespace_stack_size
);
namespace_stack
=
(
struct
sym
**
)
xrealloc
((
void
*
)
namespace_stack
,
namespace_stack
size
);
=
(
struct
sym
**
)
xrealloc
((
void
*
)
namespace_stack
,
size
*
sizeof
*
namespace_stack
);
namespace_stack_size
=
size
;
namespace_stack_size
=
size
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment