summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-07-17 20:43:42 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-07-17 20:43:42 (GMT)
commitd1516c4d628dbded9e1abefaacc1535aaecef418 (patch)
tree541ff7fd2e2d7396151851465ab7f0b9e211501a
parent6adf2aad38cf2f5a056f9014955807607bcb41b2 (diff)
downloadbusybox-d1516c4d628dbded9e1abefaacc1535aaecef418.tar.gz
busybox-d1516c4d628dbded9e1abefaacc1535aaecef418.tar.bz2
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;
}