about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-05 03:02:26 +0000
committerRoland McGrath <roland@gnu.org>2003-03-05 03:02:26 +0000
commit5461545a652e44c9b20d097dfebe332eb6bf007f (patch)
tree3ae8a112339723a9e71771e0e623a9345d9fcd16 /posix
parent0de28d5c71a3b58857642b3d5d804a790d9f6981 (diff)
downloadglibc-5461545a652e44c9b20d097dfebe332eb6bf007f.tar.gz
glibc-5461545a652e44c9b20d097dfebe332eb6bf007f.tar.xz
glibc-5461545a652e44c9b20d097dfebe332eb6bf007f.zip
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>.
Diffstat (limited to 'posix')
-rw-r--r--posix/confstr.c5
1 files 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.  */