This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  0fcf5db471f8d3ce4c20a19b9baab0d9d735bc31 (commit)
      from  93db34ea1d5f933a26c48c8c0fe9a4e79d9c1839 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=0fcf5db471f8d3ce4c20a19b9baab0d9d735bc31


commit 0fcf5db471f8d3ce4c20a19b9baab0d9d735bc31
Author: Mats Erik Andersson <[email protected]>
Date:   Fri Feb 14 23:51:07 2014 +0100

    ifconfig: Correction to flag listing.

diff --git a/ChangeLog b/ChangeLog
index 6c010ef..38ede45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-02-14  Mats Erik Andersson  <[email protected]>
 
+       * ifconfig/flags.c (if_list_flags): Increment counter
+       only in the for-statement; update the insertion of list
+       delimiters.  Each second flag name was falsely scrubbed.
+
+2014-02-14  Mats Erik Andersson  <[email protected]>
+
        Script for testing of ifconfig's modes.
        Will document all tested features.
 
diff --git a/ifconfig/flags.c b/ifconfig/flags.c
index d8b7b48..6381df1 100644
--- a/ifconfig/flags.c
+++ b/ifconfig/flags.c
@@ -257,7 +257,7 @@ if_list_flags (const char *prefix)
   fcount = i;
   qsort (fnames, fcount, sizeof (fnames[0]), cmpname);
 
-  len += 2 * fcount;
+  len += strlen (", ") * fcount;       /* Delimiters  */
 
   if (prefix)
     len += strlen (prefix);
@@ -276,13 +276,11 @@ if_list_flags (const char *prefix)
        continue;
       strcpy (p, fnames[i]);
       p += strlen (fnames[i]);
-      if (++i < fcount)
+      if (i + 1 < fcount)
        {
          *p++ = ',';
          *p++ = ' ';
        }
-      else
-       break;
     }
   *p = 0;
   free (fnames);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    6 ++++++
 ifconfig/flags.c |    6 ++----
 2 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 

_______________________________________________
Commit-inetutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/commit-inetutils

Reply via email to