commit fe843056492c1133dfe3654c8d6c17c2b8d468c6
Author:     FRIGN <[email protected]>
AuthorDate: Wed Sep 30 19:24:25 2015 +0200
Commit:     sin <[email protected]>
CommitDate: Wed Sep 30 19:44:10 2015 +0100

    Check for size == 0 in split(1)

diff --git a/split.c b/split.c
index 69a0ee6..c859c9a 100644
--- a/split.c
+++ b/split.c
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
                break;
        case 'b':
                always = 1;
-               if ((size = parseoffset(EARGF(usage()))) < 0)
+               if ((size = parseoffset(EARGF(usage()))) <= 0)
                        return 1;
                break;
        case 'd':

Reply via email to