diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 06:54:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 06:54:42 +0000 |
commit | 3d090a1c2f1a216878cc2489a6eeb5347482936e (patch) | |
tree | 6c1522d2aca16c6ba99d2f2ac491753c529f6928 /wcsmbs | |
parent | 25d13c5064647c8bd71169ad4590ce0d13540995 (diff) |
Correct decrement maxlen.
Diffstat (limited to 'wcsmbs')
-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; |