sbase

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

commit c568edc487f4ea76a2110bad9ab924903d654ea8
parent 40a5fb0140896ad20893f2b29ec79e8006b35248
Author: FRIGN <dev@frign.de>
Date:   Thu Mar 10 13:31:05 +0100

Properly use delimlen instead of len in paste(1)

Diffstat:
paste.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++)