From 08654c213cc810f283669dcb6c72ae9805d06711 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 27 Mar 2015 15:12:04 +0200 Subject: [PATCH] Fix passing non-static buffer out of scope --- src/pager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1