summaryrefslogtreecommitdiff
path: root/src/pathchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathchk.c')
-rw-r--r--src/pathchk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index ad5daddf6..ddb44ef24 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);