Print error message when size == 0 in split(1)

instead of just exiting with code 1. This could be confusing.
This commit is contained in:
FRIGN 2015-09-30 19:27:12 +02:00 committed by sin
parent fe84305649
commit c514c580ec
1 changed files with 3 additions and 1 deletions

View File

@ -58,8 +58,10 @@ main(int argc, char *argv[])
break;
case 'b':
always = 1;
if ((size = parseoffset(EARGF(usage()))) <= 0)
if ((size = parseoffset(EARGF(usage()))) < 0)
return 1;
if (!size)
eprintf("size needs to be positive\n");
break;
case 'd':
base = 10;