about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-10-10 21:34:32 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2011-10-10 21:39:59 +0200
commita843a204a3e8a0dd53584dad3668771abaec84ac (patch)
treee22b909ce03be430e88fe9f7c1999a9744a72b4e
parent12cc2fcdb47f9d7a54fda83e231f885c0425a2a9 (diff)
downloadglibc-a843a204a3e8a0dd53584dad3668771abaec84ac.tar.gz
glibc-a843a204a3e8a0dd53584dad3668771abaec84ac.tar.xz
glibc-a843a204a3e8a0dd53584dad3668771abaec84ac.zip
Fix PLT use in getnetgrent_r
-rw-r--r--ChangeLog3
-rw-r--r--inet/getnetgrent_r.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 484c139ae1..a5cbdee0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
 
+	* inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
+	of rawmemchr.
+
 	* sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
 
 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index 87903877bf..197dd37a5d 100644
--- a/inet/getnetgrent_r.c
+++ b/inet/getnetgrent_r.c
@@ -250,11 +250,11 @@ nscd_getnetgrent (struct __netgrent *datap, char *buffer, size_t buflen,
 
   datap->type = triple_val;
   datap->val.triple.host = datap->cursor;
-  datap->cursor = (char *) rawmemchr (datap->cursor, '\0') + 1;
+  datap->cursor = (char *) __rawmemchr (datap->cursor, '\0') + 1;
   datap->val.triple.user = datap->cursor;
-  datap->cursor = (char *) rawmemchr (datap->cursor, '\0') + 1;
+  datap->cursor = (char *) __rawmemchr (datap->cursor, '\0') + 1;
   datap->val.triple.domain = datap->cursor;
-  datap->cursor = (char *) rawmemchr (datap->cursor, '\0') + 1;
+  datap->cursor = (char *) __rawmemchr (datap->cursor, '\0') + 1;
 
   return NSS_STATUS_SUCCESS;
 }