summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-07-17 22:43:42 +0200
committerDenys Vlasenko2010-07-17 22:43:42 +0200
commitd1516c4d628dbded9e1abefaacc1535aaecef418 (patch)
tree541ff7fd2e2d7396151851465ab7f0b9e211501a
parent6adf2aad38cf2f5a056f9014955807607bcb41b2 (diff)
downloadbusybox-d1516c4d628dbded9e1abefaacc1535aaecef418.zip
busybox-d1516c4d628dbded9e1abefaacc1535aaecef418.tar.gz
dos2unix: fix the case w/o parameters
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/dos2unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 1911f53..e06ecc4 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -92,7 +92,7 @@ int dos2unix_main(int argc UNUSED_PARAM, char **argv)
do {
/* might be convert(NULL) if there is no filename given */
convert(*argv, conv_type);
- } while (*++argv);
+ } while (*argv && *++argv);
return 0;
}