aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/netname.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2011-10-08 03:24:17 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-08 03:24:17 -0400
commitf9efbf3af2a68c42d8c5dda54b2c9d685ddb7c40 (patch)
tree3cd7cef4303c3da51b4a4420bd0b3f0faf6260a6 /sunrpc/netname.c
parentbf5824458cc584cfbbdfdb252bd38e8330c6f662 (diff)
downloadglibc-f9efbf3af2a68c42d8c5dda54b2c9d685ddb7c40.zip
glibc-f9efbf3af2a68c42d8c5dda54b2c9d685ddb7c40.tar.gz
glibc-f9efbf3af2a68c42d8c5dda54b2c9d685ddb7c40.tar.bz2
Fix netname2host
Diffstat (limited to 'sunrpc/netname.c')
-rw-r--r--sunrpc/netname.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sunrpc/netname.c b/sunrpc/netname.c
index e1f1cf6..7de2b86 100644
--- a/sunrpc/netname.c
+++ b/sunrpc/netname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2002, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 1997-1999, 2002, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
@@ -196,9 +196,8 @@ netname2host (const char netname[MAXNETNAMELEN + 1], char *hostname,
const int hostlen)
{
char *p1, *p2;
- char buffer[MAXNETNAMELEN + 1];
- p1 = strchr (buffer, '.');
+ p1 = strchr (netname, '.');
if (p1 == NULL)
return 0;
p1++;