summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-26 06:31:03 +0000
committerJim Meyering <jim@meyering.net>2003-07-26 06:31:03 +0000
commit3a2f76335af1ed4e093c0f8c3436a9c0a090812c (patch)
tree63aa55691cecc66eebc69af80a87f4980f65036d /src
parentd5476ff41f3a0b2686168e02e5282aa2b064b0f6 (diff)
downloadcoreutils-3a2f76335af1ed4e093c0f8c3436a9c0a090812c.tar.xz
(validate_path): Cast strlen value to `unsigned long'
so it matches `%ld' format even on 32-bit systems.
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 b95915289..8bfdd359f 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -374,7 +374,7 @@ validate_path (char *path, int portability)
if (strlen (path) > (size_t) path_max)
{
error (0, 0, _("path `%s' has length %ld; exceeds limit of %ld"),
- path, strlen (path), path_max);
+ path, (unsigned long) strlen (path), path_max);
return 1;
}