sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 0b87cd4c61ab14972ccb3931483560ebde222eb6
parent 7fd88bdc6f3e84a48d14208d91c11baf55892970
Author: FRIGN <dev@frign.de>
Date:   Thu, 10 Mar 2016 13:31:05 +0100

Properly use delimlen instead of len in paste(1)

Diffstat:
Mpaste.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/paste.c b/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++)