This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.27.9000-287-gcd104f4
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 3 Apr 2018 22:01:56 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.27.9000-287-gcd104f4
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 C Library master sources".
The branch, master has been updated
via cd104f4ff43fed06aed9069cf662c4a5bc2ffbc0 (commit)
from 92846492dc3ae0be25e7ea93daf42b08906068d9 (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cd104f4ff43fed06aed9069cf662c4a5bc2ffbc0
commit cd104f4ff43fed06aed9069cf662c4a5bc2ffbc0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Wed Apr 4 00:01:19 2018 +0200
hurd: Fix missing trailing NUL in __if_nametoindex
* sysdeps/mach/hurd/if_index.c (__if_nametoindex): Pass the whole buffer
size to strncpy.
diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c
index b56bfc7..de859eb 100644
--- a/sysdeps/mach/hurd/if_index.c
+++ b/sysdeps/mach/hurd/if_index.c
@@ -43,7 +43,7 @@ __if_nametoindex (const char *ifname)
return 0;
}
- strncpy (ifr.ifr_name, ifname, IFNAMESIZ - 1);
+ strncpy (ifr.ifr_name, ifname, IFNAMESIZ);
if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0)
{
int saved_errno = errno;
-----------------------------------------------------------------------
Summary of changes:
sysdeps/mach/hurd/if_index.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources