diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 06:52:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 06:52:42 +0000 |
commit | 0bd537d8e02108727d5a646a4c8de647b077ffa9 (patch) | |
tree | d10eb44563cef2e2e2b451a5989731c24bd28814 /wcsmbs/wcsnlen.c | |
parent | 0fb653cca7e51af40a2e620febc84add585feb94 (diff) | |
download | glibc-0bd537d8e02108727d5a646a4c8de647b077ffa9.tar.gz glibc-0bd537d8e02108727d5a646a4c8de647b077ffa9.tar.xz glibc-0bd537d8e02108727d5a646a4c8de647b077ffa9.zip |
Update.
1999-08-15 Ulrich Drepper <drepper@cygnus.com> * wcsmbs/wcsnlen.c: Correct decrement maxlen. * wcsmbs/Makefile (tests): Add tst-wcsnlen. * wcsmbs/tst-wcsnlen.c: New file.
Diffstat (limited to 'wcsmbs/wcsnlen.c')
-rw-r--r-- | wcsmbs/wcsnlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wcsmbs/wcsnlen.c b/wcsmbs/wcsnlen.c index 5264a66d05..0696f40495 100644 --- a/wcsmbs/wcsnlen.c +++ b/wcsmbs/wcsnlen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. @@ -37,6 +37,7 @@ __wcsnlen (s, maxlen) if (s[++len] == L'\0' || --maxlen == 0) return len; ++len; + --maxlen; } return len; |