Fix passing non-static buffer out of scope
This commit is contained in:
+2
-1
@@ -447,7 +447,8 @@ const char **firstmatch;
|
|||||||
{
|
{
|
||||||
boolean need_to_look = FALSE;
|
boolean need_to_look = FALSE;
|
||||||
int glyph;
|
int glyph;
|
||||||
char look_buf[BUFSZ], prefix[BUFSZ];
|
static char look_buf[BUFSZ];
|
||||||
|
char prefix[BUFSZ];
|
||||||
int found = 0; /* count of matching syms found */
|
int found = 0; /* count of matching syms found */
|
||||||
int i;
|
int i;
|
||||||
int skipped_venom = 0;
|
int skipped_venom = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user