seq: blaze822_loop: drop - for stdin (conflicts with .-1)

This commit is contained in:
Christian Neukirchen 2016-07-22 21:28:51 +02:00
parent 9da61f69f7
commit 9a3d45785e

2
seq.c
View File

@ -337,7 +337,7 @@ blaze822_loop(int argc, char *argv[], void (*cb)(char *))
ssize_t rd;
int i = 0;
if (argc == 0 || (argc == 1 && strcmp(argv[0], "-") == 0)) {
if (argc == 0) {
while ((rd = getdelim(&line, &linelen, '\n', stdin)) != -1) {
if (line[rd-1] == '\n')
line[rd-1] = 0;