about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-10-08 21:12:18 +0000
committerUlrich Drepper <drepper@redhat.com>2003-10-08 21:12:18 +0000
commit943ae89d56bdaf74caee27d56689ccd9c52fed96 (patch)
tree3fef42a73836f3ef1dd97abe1e546e6958ca1566
parente700a90879806fa32aa21efbf877db646a8d9fd8 (diff)
downloadglibc-943ae89d56bdaf74caee27d56689ccd9c52fed96.tar.gz
glibc-943ae89d56bdaf74caee27d56689ccd9c52fed96.tar.xz
glibc-943ae89d56bdaf74caee27d56689ccd9c52fed96.zip
Update.
2003-10-08  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
	two identical copies of strings.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/generic/dl-sysdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 039f640af1..cd7013f33d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-08  Jakub Jelinek  <jakub@redhat.com>
+
+	* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
+	two identical copies of strings.
+
 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
 
 	* posix/bug-regex11.c: Add some more tests which fail so far.
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index 8408e38085..40dcf8060e 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -454,7 +454,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
     }
   else
     {
-      n = 1 << cnt;
+      n = 1 << (cnt - 1);
       do
 	{
 	  n -= 2;