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 00e5a17..4cbe7e1 100644 --- a/coreutils/length.c +++ b/coreutils/length.c @@ -9,6 +9,6 @@ extern int length_main(int argc, char **argv) if (argc != 2 || **(argv + 1) == '-') { usage("length string\n"); } - printf("%d\n", strlen(argv[1])); + printf("%lu\n", (long)strlen(argv[1])); return (TRUE); } |