[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Inetutils branch, master, updated. inetutils-1_8-38-g8646d96
From: |
Simon Josefsson |
Subject: |
[SCM] GNU Inetutils branch, master, updated. inetutils-1_8-38-g8646d96 |
Date: |
Fri, 01 Oct 2010 15:02:32 +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 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 <address@hidden>
Date: Fri Oct 1 17:02:19 2010 +0200
ifconfig/system/linux.c: Recalculate a search range.
Signed-off-by: Simon Josefsson <address@hidden>
diff --git a/ChangeLog b/ChangeLog
index 6f6632b..657874c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-23 Mats Erik Andersson <address@hidden>
+
+ * 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 <address@hidden>
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Inetutils branch, master, updated. inetutils-1_8-38-g8646d96,
Simon Josefsson <=