]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 3 Feb 2002 02:33:57 +0000 (02:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 3 Feb 2002 02:33:57 +0000 (02:33 +0000)
2002-02-02  Ulrich Drepper  <drepper@redhat.com>

* manual/examples/mkfsock.c (make_named_socket): Make sure name is
always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.

ChangeLog
linuxthreads/ChangeLog
manual/examples/mkfsock.c

index 43fd4b6b9d45c1081ac7df830fa4e4a7a504de5f..994fe8f30c23f234cdd5d7a385c75bdbc0c47926 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-02  Ulrich Drepper  <drepper@redhat.com>
+
+       * manual/examples/mkfsock.c (make_named_socket): Make sure name is
+       always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
+
 2002-02-01  H.J. Lu  <hjl@gnu.org>
 
        * sysdeps/mips/atomicity.h (exchange_and_add): Use branch
index b0cdf63a8c295fbeaaa2c3d2b0132cfcd1b4c1d1..6f9c93687b4be239d3f11f398e5dedfbdd9136db 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-01  H.J. Lu  <hjl@gnu.org>
+
+       * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Use a
+       different register in the delayed slot.  Use branch likely.
+
+       * sysdeps/mips/pt-machine.h (testandset): Call _test_and_set.
+       (__compare_and_swap): Return 0 only when failed to compare. Use
+       branch likely.
+
 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
 
        * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set,
index affeba66bec19685063d946a8bfba4a195071e68..1ecabb95cf3ea3f74f73ba31b40606affdcd77e7 100644 (file)
@@ -23,6 +23,7 @@ make_named_socket (const char *filename)
   /* Bind a name to the socket.  */
   name.sun_family = AF_LOCAL;
   strncpy (name.sun_path, filename, sizeof (name.sun_path));
+  name.sun_path[sizeof (name.sun_path) - 1] = '\0';
 
   /* The size of the address is
      the offset of the start of the filename,
This page took 0.047263 seconds and 5 git commands to generate.