Fix passing non-static buffer out of scope

This commit is contained in:
Pasi Kallinen
2015-03-27 15:12:34 +02:00
parent ed85d3f158
commit 08654c213c
+2 -1
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;