From: Pasi Kallinen Date: Fri, 27 Mar 2015 13:12:04 +0000 (+0200) Subject: Fix passing non-static buffer out of scope X-Git-Tag: NetHack-3.6.0_RC01~546 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08654c213cc810f283669dcb6c72ae9805d06711;p=nethack Fix passing non-static buffer out of scope --- diff --git a/src/pager.c b/src/pager.c index bb1c82e72..f2f5b9968 100644 --- a/src/pager.c +++ b/src/pager.c @@ -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;