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:
Roland McGrath 2003-03-05 03:02:26 +00:00
parent 0de28d5c71
commit 5461545a65

View File

@ -143,12 +143,13 @@ confstr (name, buf, len)
case _CS_GNU_LIBC_VERSION:
string = "glibc " VERSION;
string_len = strlen (string);
string_len = sizeof ("glibc " VERSION);
break;
case _CS_GNU_LIBPTHREAD_VERSION:
#ifdef LIBPTHREAD_VERSION
string = LIBPTHREAD_VERSION;
string_len = strlen (string);
string_len = sizeof LIBPTHREAD_VERSION;
break;
#else
/* No thread library. */