summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-16 05:43:24 +0000
committerJim Meyering <jim@meyering.net>1996-03-16 05:43:24 +0000
commit182c784a997ee62470118058e441a5edc00142f3 (patch)
treee78b47a670cc7001f2f8ac455bba4f7569d64d13 /src
parentb14b621029cb103e21d5f6af471776dec180341c (diff)
downloadcoreutils-182c784a997ee62470118058e441a5edc00142f3.tar.xz
(validate_path): Cast path_max to size_t before
comparing with strlen(path).
Diffstat (limited to 'src')
-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);