diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-01-22 11:06:01 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-01-22 11:06:01 +0100 |
commit | 742732a1c818e382bfd55e274b490e8b3cdf4dca (patch) | |
tree | c5ac90e182d664249782f9022e0b24a2e2c2629b /search.c | |
parent | 089ec389dd7de47295c0664d3f4193b1a66dbe4f (diff) | |
parent | 7936b9b2a7c7c3cc06d3fb60c22ed535b610cd63 (diff) | |
download | cwm-742732a1c818e382bfd55e274b490e8b3cdf4dca.tar.gz cwm-742732a1c818e382bfd55e274b490e8b3cdf4dca.tar.xz cwm-742732a1c818e382bfd55e274b490e8b3cdf4dca.zip |
cvsimport
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/search.c b/search.c index 49e3184..33f2838 100644 --- a/search.c +++ b/search.c @@ -18,7 +18,7 @@ * $OpenBSD$ */ -#include <sys/param.h> +#include <sys/types.h> #include "queue.h" #include <assert.h> @@ -26,6 +26,7 @@ #include <errno.h> #include <fnmatch.h> #include <glob.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -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; |