From 182c784a997ee62470118058e441a5edc00142f3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 16 Mar 1996 05:43:24 +0000 Subject: [PATCH] (validate_path): Cast path_max to size_t before comparing with strlen(path). --- src/pathchk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathchk.c b/src/pathchk.c index ad5daddf69..ddb44ef240 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -342,7 +342,7 @@ validate_path (char *path, int portability) if (path_max < 0) path_max = _POSIX_PATH_MAX; free (parent); - if (strlen (path) > path_max) + if (strlen (path) > (size_t) path_max) { error (0, 0, _("path `%s' has length %d; exceeds limit of %d"), path, strlen (path), path_max); -- 2.47.2