From 69c7524909cec83591a6cea56722753922d9999a Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 19 Jan 2015 14:54:16 +0000 Subject: Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX and HOST_NAME_MAX+1, respectively. ok doug@ --- search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index 7e55a51..0acfd2c 100644 --- a/search.c +++ b/search.c @@ -15,10 +15,10 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: search.c,v 1.41 2014/09/15 13:00:49 okan Exp $ + * $OpenBSD: search.c,v 1.42 2015/01/19 14:54:16 okan Exp $ */ -#include +#include #include #include @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -172,7 +173,7 @@ search_print_client(struct menu *mi, int list) static void search_match_path(struct menu_q *menuq, struct menu_q *resultq, char *search, int flag) { - char pattern[MAXPATHLEN]; + char pattern[PATH_MAX]; glob_t g; int i; -- cgit v1.2.3-2-gb3c3