]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/glibc/glibc-rh789189.patch
Merge branch 'next' into fifteen
[people/teissler/ipfire-2.x.git] / src / patches / glibc / glibc-rh789189.patch
CommitLineData
12788f63
MT
1diff -rup a/resolv/res_init.c b/resolv/res_init.c
2--- a/resolv/res_init.c 2010-05-04 05:27:23.000000000 -0600
3+++ b/resolv/res_init.c 2012-02-10 10:20:24.923578396 -0700
4@@ -325,7 +325,7 @@ __res_vinit(res_state statp, int preinit
5 struct in6_addr a6;
6 char *el;
7
8- if ((el = strchr(cp, '\n')) != NULL)
9+ if ((el = strpbrk(cp, " \t\n")) != NULL)
10 *el = '\0';
11 if ((el = strchr(cp, SCOPE_DELIMITER)) != NULL)
12 *el = '\0';