summaryrefslogtreecommitdiff
path: root/string/strxfrm.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-26 03:11:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-26 03:11:19 +0000
commitd6f7f7bdf014b2c80424c496b51d339a4db0f827 (patch)
tree52a3c78798c015b4cd37a860241f344edf9cc0d0 /string/strxfrm.c
parent9de4e2034072a876f16d9c1d7368cee533d91a6b (diff)
Update.
2000-01-25 Ulrich Drepper <drepper@cygnus.com> * string/strxfrm.c: Don't count in the terminating NUL byte/word.
Diffstat (limited to 'string/strxfrm.c')
-rw-r--r--string/strxfrm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/string/strxfrm.c b/string/strxfrm.c
index 9fd9526008..7ddc5f3f81 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 <drepper@cygnus.com>, 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;
}