mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 09:01:07 +00:00
2003-03-04 Roland McGrath <roland@redhat.com>
* posix/confstr.c (confstr): Correct STRING_LEN values for _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing break. Reported by Alexandre Julliard <julliard@winehq.com>.
This commit is contained in:
parent
0de28d5c71
commit
5461545a65
@ -143,12 +143,13 @@ confstr (name, buf, len)
|
|||||||
|
|
||||||
case _CS_GNU_LIBC_VERSION:
|
case _CS_GNU_LIBC_VERSION:
|
||||||
string = "glibc " VERSION;
|
string = "glibc " VERSION;
|
||||||
string_len = strlen (string);
|
string_len = sizeof ("glibc " VERSION);
|
||||||
|
break;
|
||||||
|
|
||||||
case _CS_GNU_LIBPTHREAD_VERSION:
|
case _CS_GNU_LIBPTHREAD_VERSION:
|
||||||
#ifdef LIBPTHREAD_VERSION
|
#ifdef LIBPTHREAD_VERSION
|
||||||
string = LIBPTHREAD_VERSION;
|
string = LIBPTHREAD_VERSION;
|
||||||
string_len = strlen (string);
|
string_len = sizeof LIBPTHREAD_VERSION;
|
||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
/* No thread library. */
|
/* No thread library. */
|
||||||
|
Loading…
Reference in New Issue
Block a user