[hackers] [sbase] Properly use delimlen instead of len in paste(1) || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 10 Mar 2016 14:39:53 +0100 (CET)

commit 0b87cd4c61ab14972ccb3931483560ebde222eb6
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Thu Mar 10 13:31:05 2016 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Thu Mar 10 13:39:49 2016 +0000

    Properly use delimlen instead of len in paste(1)

diff --git a/paste.c b/paste.c
index 8a8ae3e..77fc090 100644
--- a/paste.c
+++ b/paste.c
_AT_@ -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";
 
_AT_@ -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++)
Received on Thu Mar 10 2016 - 14:39:53 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 10 2016 - 14:48:12 CET