From 5461545a652e44c9b20d097dfebe332eb6bf007f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 5 Mar 2003 03:02:26 +0000 Subject: 2003-03-04 Roland McGrath * 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 . --- posix/confstr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/posix/confstr.c b/posix/confstr.c index bc3c8b89e3..212ec72311 100644 --- a/posix/confstr.c +++ b/posix/confstr.c @@ -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. */ -- cgit 1.4.1