diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-16 05:43:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-16 05:43:24 +0000 |
commit | 182c784a997ee62470118058e441a5edc00142f3 (patch) | |
tree | e78b47a670cc7001f2f8ac455bba4f7569d64d13 | |
parent | b14b621029cb103e21d5f6af471776dec180341c (diff) | |
download | coreutils-182c784a997ee62470118058e441a5edc00142f3.tar.xz |
(validate_path): Cast path_max to size_t before
comparing with strlen(path).
-rw-r--r-- | src/pathchk.c | 2 |
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); |