From 3a2f76335af1ed4e093c0f8c3436a9c0a090812c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 26 Jul 2003 06:31:03 +0000 Subject: [PATCH] (validate_path): Cast strlen value to `unsigned long' so it matches `%ld' format even on 32-bit systems. --- src/pathchk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathchk.c b/src/pathchk.c index b959152..8bfdd35 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; } -- 2.7.4