Fix passing non-static buffer out of scope

This commit is contained in:
Pasi Kallinen
2015-03-27 15:12:04 +02:00
parent ed85d3f158
commit 08654c213c

View File

@@ -447,7 +447,8 @@ const char **firstmatch;
{
boolean need_to_look = FALSE;
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 i;
int skipped_venom = 0;