commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_2-6-g0fcf5db


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_2-6-g0fcf5db
Date: Fri, 14 Feb 2014 22:54:45 +0000

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 <address@hidden>
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  <address@hidden>
 
+       * 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  <address@hidden>
+
        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 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]