From 71ce28fd1abbccc9814d199d770e673135a33ee1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 5 Sep 2001 00:26:04 +0000 Subject: Update. 2001-09-04 Jakub Jelinek * 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 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'. * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include . (__syscall_gethostname): Add prototype. --- sunrpc/rpc_cout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc/rpc_cout.c') 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"); -- cgit 1.4.1