summary refs log tree commit diff
path: root/sunrpc/rpc_cout.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-09-05 00:26:04 +0000
committerUlrich Drepper <drepper@redhat.com>2001-09-05 00:26:04 +0000
commit71ce28fd1abbccc9814d199d770e673135a33ee1 (patch)
tree2a57d3f2cb75d8261f720f7f4b967ec456248363 /sunrpc/rpc_cout.c
parent903244ac3c697bc1f05c0ec0b994d7c36763ca3f (diff)
downloadglibc-71ce28fd1abbccc9814d199d770e673135a33ee1.tar.gz
glibc-71ce28fd1abbccc9814d199d770e673135a33ee1.tar.xz
glibc-71ce28fd1abbccc9814d199d770e673135a33ee1.zip
Update.
2001-09-04  Jakub Jelinek  <jakub@redhat.com>

	* iconv/strtab.c (strtabinit): Initialize null Strent.
	(newstring): Move len == 0 handling...
	(strtabadd): ...here.
	If len == 1, return null Strent.
	When inserting a suffix of an existing string, check if
	it is not equal to some suffix already recorded.
	Copy left and right members over if adding longer string.

2001-09-04  Jakub Jelinek  <jakub@redhat.com>

	* sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.

	* sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
	(__syscall_gethostname): Add prototype.
Diffstat (limited to 'sunrpc/rpc_cout.c')
-rw-r--r--sunrpc/rpc_cout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/rpc_cout.c b/sunrpc/rpc_cout.c
index 44027ea39e..a6471ab335 100644
--- a/sunrpc/rpc_cout.c
+++ b/sunrpc/rpc_cout.c
@@ -801,7 +801,7 @@ static char *
 upcase (const char *str)
 {
   char *ptr, *hptr;
-  ptr = malloc (strlen (str));
+  ptr = malloc (strlen (str) + 1);
   if (ptr == NULL)
     {
       f_print (stderr, "malloc failed\n");