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  8646d96518913a67bdd6704b86a013de81788474 (commit)
      from  bf3bb5197cf03faf5af35b49040a2e69193f068c (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=8646d96518913a67bdd6704b86a013de81788474


commit 8646d96518913a67bdd6704b86a013de81788474
Author: Mats Erik Andersson <[email protected]>
Date:   Fri Oct 1 17:02:19 2010 +0200

    ifconfig/system/linux.c: Recalculate a search range.
    
    Signed-off-by: Simon Josefsson <[email protected]>

diff --git a/ChangeLog b/ChangeLog
index 6f6632b..657874c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-23  Mats Erik Andersson <[email protected]>
+
+       * ifconfig/system/linux.c (linux_if_nameindex): Express the exact
+       amount remaining of the string when locating next token.
+
 2010-09-28  Mats Erik Andersson <[email protected]>
 
        * configure.ac: Unconditionally include <sys/types.h> when
diff --git a/ifconfig/system/linux.c b/ifconfig/system/linux.c
index 0f4e579..808d252 100644
--- a/ifconfig/system/linux.c
+++ b/ifconfig/system/linux.c
@@ -886,7 +886,7 @@ linux_if_nameindex (void)
   }
 
   for (it = memchr (content, ':', length), index = 0; it;
-       it = memchr (it, ':', it - content), index++)
+       it = memchr (it, ':', length - (it - content)), index++)
     {
       char *start = it - 1;
       *it = '\0';

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

Summary of changes:
 ChangeLog               |    5 +++++
 ifconfig/system/linux.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 

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

Reply via email to