commit a6f8f66ac121f03e36e6793d8b89ff3cbc4ee687
Author: FRIGN <[email protected]>
Date:   Sat Jun 6 22:38:03 2015 +0200

    Fix typo in join(1)
    
    This was causing some mysterious output bugs.
    Thanks, Wolfgang Corcoran-Mathe!

diff --git a/join.c b/join.c
index b2fd07e..a013946 100644
--- a/join.c
+++ b/join.c
@@ -140,7 +140,7 @@ prjoin(struct line *la, struct line *lb, size_t jfa, size_t 
jfb)
                for (i = 0; i < lb->nf; i++) {
                        if (i != jfb) {
                                prfield(&lb->fields[i]);
-                               if (i < la->nf - 1)
+                               if (i < lb->nf - 1)
                                        prsep();
                        }
                }

Reply via email to