From: Ulrich Drepper Date: Wed, 26 Jan 2000 03:11:19 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~19305 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6f7f7bdf014b2c80424c496b51d339a4db0f827;p=platform%2Fupstream%2Flinaro-glibc.git Update. 2000-01-25 Ulrich Drepper * string/strxfrm.c: Don't count in the terminating NUL byte/word. --- diff --git a/ChangeLog b/ChangeLog index b23f60f..7308622 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-01-25 Ulrich Drepper + + * string/strxfrm.c: Don't count in the terminating NUL byte/word. + 2000-01-24 Paul Eggert * posix/fnmatch_loop.c (FCT): Use locale's collating sequence when diff --git a/string/strxfrm.c b/string/strxfrm.c index 9fd9526..7ddc5f3 100644 --- a/string/strxfrm.c +++ b/string/strxfrm.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Ulrich Drepper , 1995. @@ -478,5 +478,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l) if (use_malloc) free (idxarr); - return needed; + /* Return the number of bytes/words we need, but don't count the NUL + byte/word at the end. */ + return needed - 1; }