summaryrefslogtreecommitdiff
path: root/coreutils/length.c
diff options
context:
space:
mode:
authorErik Andersen2000-04-21 01:26:49 +0000
committerErik Andersen2000-04-21 01:26:49 +0000
commit1d1d95051a288b6bf64498aac9fb20047f384b7d (patch)
tree2c99ce8ba7d4d592806fbf81899e663bc884676b /coreutils/length.c
parentcf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f (diff)
downloadbusybox-1d1d95051a288b6bf64498aac9fb20047f384b7d.zip
busybox-1d1d95051a288b6bf64498aac9fb20047f384b7d.tar.gz
More Doc updates. cmdedit and more termio fixes.
Diffstat (limited to 'coreutils/length.c')
-rw-r--r--coreutils/length.c2
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);
}