projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5476ff
)
(validate_path): Cast strlen value to `unsigned long'
author
Jim Meyering
<jim@meyering.net>
Sat, 26 Jul 2003 06:31:03 +0000
(06:31 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 26 Jul 2003 06:31:03 +0000
(06:31 +0000)
so it matches `%ld' format even on 32-bit systems.
src/pathchk.c
patch
|
blob
|
history
diff --git
a/src/pathchk.c
b/src/pathchk.c
index
b959152
..
8bfdd35
100644
(file)
--- 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;
}