Properly use delimlen instead of len in paste(1)
This commit is contained in:
parent
7fd88bdc6f
commit
0b87cd4c61
6
paste.c
6
paste.c
|
@ -87,7 +87,7 @@ main(int argc, char *argv[])
|
|||
{
|
||||
struct fdescr *dsc;
|
||||
Rune *delim;
|
||||
size_t delimlen, i, len;
|
||||
size_t delimlen, i;
|
||||
int seq = 0, ret = 0;
|
||||
char *adelim = "\t";
|
||||
|
||||
|
@ -126,9 +126,9 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (seq) {
|
||||
sequential(dsc, argc, delim, len);
|
||||
sequential(dsc, argc, delim, delimlen);
|
||||
} else {
|
||||
parallel(dsc, argc, delim, len);
|
||||
parallel(dsc, argc, delim, delimlen);
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user