1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Fix netname2host

This commit is contained in:
Andreas Jaeger
2011-10-08 03:24:17 -04:00
committed by Ulrich Drepper
parent bf5824458c
commit f9efbf3af2
3 changed files with 7 additions and 5 deletions

View File

@ -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++;