Use the EARGF()-macro in cut.c

This commit is contained in:
FRIGN 2015-01-22 16:36:07 +01:00
parent 733b33f1c7
commit 3946d1fcc9

7
cut.c
View File

@ -159,14 +159,11 @@ main(int argc, char *argv[])
case 'c':
case 'f':
mode = ARGC();
m = ARGF();
if (!m)
usage();
m = EARGF(usage());
parselist(m);
break;
case 'd':
if(!(d = ARGF()))
usage();
d = EARGF(usage());
for (i = 1; i <= strlen(d); i++)
if (fullrune(d, i))
break;