Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Apr 2000 07:15:10 +0000 (07:15 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Apr 2000 07:15:10 +0000 (07:15 +0000)
2000-03-31  Andreas Schwab  <schwab@suse.de>

* string/strfry.c: Declare STATE as array of char instead of int
and do not initialize it (done by initstate_r).  Pass correct
size.

* sysdeps/generic/ldsodefs.h: Fix typo in comment.

ChangeLog
string/strfry.c
sysdeps/generic/ldsodefs.h

index 8c19ad7..0fbfb3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
+2000-03-31  Andreas Schwab  <schwab@suse.de>
+
+       * string/strfry.c: Declare STATE as array of char instead of int
+       and do not initialize it (done by initstate_r).  Pass correct
+       size.
+
 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/generic/ldsodefs.h: Fix typo in comment.
+
        * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
        instruction out of the code.
 
index c13b3da..11fc503 100644 (file)
@@ -29,9 +29,9 @@ strfry (char *string)
 
   if (!init)
     {
-      static int state[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
+      static char state[32];
       rdata.state = NULL;
-      __initstate_r (time ((time_t *) NULL), state, 8, &rdata);
+      __initstate_r (time ((time_t *) NULL), state, sizeof (state), &rdata);
       init = 1;
     }
 
index 023cdfe..757a5bc 100644 (file)
@@ -39,7 +39,7 @@ __BEGIN_DECLS
 /* All references to the value of l_info[DT_PLTGOT],
   l_info[DT_STRTAB], l_info[DT_SYMTAB], l_info[DT_RELA],
   l_info[DT_REL], l_info[DT_JMPREL], and l_info[VERSYMIDX (DT_VERSYM)]
-  have to accessed via the D_PTR macro.  The macro is needed since for
+  have to be accessed via the D_PTR macro.  The macro is needed since for
   most architectures the entry is already relocated - but for some not
   and we need to relocate at access time.  */
 #ifdef DL_RO_DYN_SECTION