]> granicus.if.org Git - nethack/commitdiff
Fix passing non-static buffer out of scope
authorPasi Kallinen <paxed@alt.org>
Fri, 27 Mar 2015 13:12:04 +0000 (15:12 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 27 Mar 2015 13:12:34 +0000 (15:12 +0200)
src/pager.c

index bb1c82e72a9fa464ed2ed3b57312f4e9bce7947b..f2f5b9968cd69a9b0411723fd1ee9b6754f48bd2 100644 (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;