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-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
+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,
/* 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,