diff options
Diffstat (limited to 'coreutils/length.c')
-rw-r--r-- | coreutils/length.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/length.c b/coreutils/length.c index 00e5a171b..4cbe7e17b 100644 --- a/coreutils/length.c +++ b/coreutils/length.c | |||
@@ -9,6 +9,6 @@ extern int length_main(int argc, char **argv) | |||
9 | if (argc != 2 || **(argv + 1) == '-') { | 9 | if (argc != 2 || **(argv + 1) == '-') { |
10 | usage("length string\n"); | 10 | usage("length string\n"); |
11 | } | 11 | } |
12 | printf("%d\n", strlen(argv[1])); | 12 | printf("%lu\n", (long)strlen(argv[1])); |
13 | return (TRUE); | 13 | return (TRUE); |
14 | } | 14 | } |