diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-11-12 22:42:22 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-11-12 22:42:22 +0000 |
commit | cc67478e282ac5c46a1005474cca51342efe1397 (patch) | |
tree | 0147133ad7d93b6296f314982ba79cc7c7e1798c /intl | |
parent | 9975e3d37d8585b41db075321bade3495cf58cdb (diff) | |
download | glibc-cc67478e282ac5c46a1005474cca51342efe1397.zip glibc-cc67478e282ac5c46a1005474cca51342efe1397.tar.gz glibc-cc67478e282ac5c46a1005474cca51342efe1397.tar.bz2 |
Fix localealias.c fgets_unlocked namespace (bug 17589).
intl/localealias.c is brought in by ISO C functions, but uses
fgets_unlocked, which is not an ISO C function. This patch changes
this to use __fgets_unlocked.
Tested for x86_64 (testsuite, and that stripped installed shared
libraries are unchanged by the patch).
[BZ #17589]
* intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
of fgets_unlocked.
Diffstat (limited to 'intl')
-rw-r--r-- | intl/localealias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intl/localealias.c b/intl/localealias.c index 9ab4328..1d3f8eb 100644 --- a/intl/localealias.c +++ b/intl/localealias.c @@ -84,7 +84,7 @@ __libc_lock_define_initialized (static, lock); /* Some optimizations for glibc. */ #ifdef _LIBC # define FEOF(fp) feof_unlocked (fp) -# define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) +# define FGETS(buf, n, fp) __fgets_unlocked (buf, n, fp) #else # define FEOF(fp) feof (fp) # define FGETS(buf, n, fp) fgets (buf, n, fp) |