]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 28 Apr 2000 06:14:43 +0000 (06:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 28 Apr 2000 06:14:43 +0000 (06:14 +0000)
* wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
== NULL.  Little optimization.

* elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
DT_PREINIT_ARRAYSZ).
Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.

ChangeLog
ChangeLog.9
crypt/ChangeLog.old [deleted file]
elf/dl-init.c
wcsmbs/wcrtomb.c

index 7b8479673c39061a5ac493a52351c88b42e2f7ca..e7c3bda0ba0eb6091a2bdfe9e2eba228cfe35644 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
 
+       * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
+       == NULL.  Little optimization.
+
+       * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
+       DT_PREINIT_ARRAYSZ).
+       Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
+
        * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
        overflows in conversion from ASCII.
 
index 77330289fb1a49f79c7b950a106eed955e135b26..055a8aa746686803dac9a6a2ec8b5be144b7578f 100644 (file)
        * sysdeps/generic/statvfs64.c: Likewise.
        * sysdeps/unix/sysv/linux/statvfs64.c: Likewise.
 
+1998-12-25  Geoff Keating  <geoffk@ozemail.com.au>
+
+       * crypt/sysdeps/unix/ufc-crypt.h: Use <stdint.h>.
+
+       * crypt/configure: Delete the code dealing with building the add-on
+       outside glibc, as this doesn't work.
+
 1998-12-25  Ulrich Drepper  <drepper@cygnus.com>
 
        * elf/dl-hash.h: Move to...
        * po/es.po: Update from translation team.
        * po/fr.po: Likewise.
 
+1998-12-10  Geoff Keating  <geoffk@ozemail.com.au>
+
+       * crypt/sysdeps/unix/crypt-entry.c: Don't include "patchlevel.h".
+
+       * crypt/sysdeps/unix/crypt.h: Move __crypt_r, __setkey_r,
+       __encrypt_r to...
+       * crypt/sysdeps/unix/crypt-private.h: ...here.
+
+       * crypt/sysdeps/unix/crypt.h: Add __restrict to the structure
+       parameters.
+       * crypt/sysdeps/unix/crypt-private.h: Likewise.  Also add const to
+       first parameter of _ufc_mk_keytab_r.
+       * crypt/sysdeps/unix/crypt.c: Update prototypes. 
+       * crypt/sysdeps/unix/crypt-entry.c: Likewise.
+       * crypt/sysdeps/unix/crypt_util.c: Likewise.
+
+       * crypt/sysdeps/unix/crypt-entry.c (crypt): Use __crypt_r not crypt_r.
+
 1998-12-10  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
 
        * nis/nss_compat/compat-pwd.c: Fix handling of +/- entries.
diff --git a/crypt/ChangeLog.old b/crypt/ChangeLog.old
deleted file mode 100644 (file)
index 8fba95e..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-1998-12-25  Geoff Keating  <geoffk@ozemail.com.au>
-
-       * sysdeps/unix/ufc-crypt.h: Use <stdint.h>.
-
-       * configure: Delete the code dealing with building the add-on
-       outside glibc, as this doesn't work.
-
-1998-12-10  Geoff Keating  <geoffk@ozemail.com.au>
-
-       * sysdeps/unix/crypt-entry.c: Don't include "patchlevel.h".
-
-       * sysdeps/unix/crypt.h: Move __crypt_r, __setkey_r, __encrypt_r to...
-       * sysdeps/unix/crypt-private.h: ...here.
-
-       * sysdeps/unix/crypt.h: Add __restrict to the structure parameters.
-       * sysdeps/unix/crypt-private.h: Likewise.  Also add const to
-       first parameter of _ufc_mk_keytab_r.
-       * sysdeps/unix/crypt.c: Update prototypes. 
-       * sysdeps/unix/crypt-entry.c: Likewise.
-       * sysdeps/unix/crypt_util.c: Likewise.
-
-       * sysdeps/unix/crypt-entry.c (crypt): Use __crypt_r not crypt_r.
-
-ChangeLog starts here, with version 2.0.96.
index dfef83dd6f7c7cbf668b656cbb8d6f6dbb8b2361..683b94b9c777b10f4258b33e6c8150c0992ed1e6 100644 (file)
@@ -32,7 +32,7 @@ void
 internal_function
 _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
 {
-  ElfW(Dyn) *preinit_array = main_map->l_info[DT_PREINIT_ARRAYSZ];
+  ElfW(Dyn) *preinit_array = main_map->l_info[DT_PREINIT_ARRAY];
   struct r_debug *r;
   unsigned int i;
 
index 644d26bbc8a8a88df6344d596b433aee7e0c2c3d..7aef505ef34f8ea8599fe2c67b136e1d277a427e 100644 (file)
@@ -43,9 +43,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
   size_t result;
   size_t dummy;
 
-  /* Tell where we want the result.  */
-  data.__outbuf = s;
-  data.__outbufend = s + MB_CUR_MAX;
+  /* Set information for this step.  */
   data.__invocation_counter = 0;
   data.__internal_use = 1;
   data.__is_last = 1;
@@ -55,12 +53,16 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
      initial state.  */
   if (s == NULL)
     {
-      data.__outbuf = buf;
+      s = buf;
       wc = L'\0';
       temp_state = *data.__statep;
       data.__statep = &temp_state;
     }
 
+  /* Tell where we want to have the result.  */
+  data.__outbuf = s;
+  data.__outbufend = s + MB_CUR_MAX;
+
   /* Make sure we use the correct function.  */
   update_conversion_ptrs ();
 
@@ -98,7 +100,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
 
   if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT
       || status == __GCONV_FULL_OUTPUT)
-    result = data.__outbuf - (unsigned char *) (s ?: buf);
+    result = data.__outbuf - (unsigned char *) s;
   else
     {
       result = (size_t) -1;