On 11/24/2012 07:40 PM, Jim Meyering wrote:

diff --git a/src/cut.c b/src/cut.c
index b464840..4219d24 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -514,17 +514,18 @@ set_fields (const char *fieldstr)
    /* Set the array entries corresponding to integers in the ranges of RP.  */
    for (i = 0; i < n_rp; i++)
      {
-      size_t j;
-      size_t rsi_candidate;
+      /* Ignore any range that is subsumed by the to-EOL range.  */
+      if (eol_range_start && eol_range_start <= rp[i].lo)
+        continue;

looks good.

thanks,
Pádraig.



Reply via email to