summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Colomar <alx.manpages@gmail.com>2022-09-18 13:38:20 +0200
committerAlex Colomar <alx.manpages@gmail.com>2022-09-18 13:38:22 +0200
commitbf8f5415a1dd3296d3741008936458aeaf8769fc (patch)
tree56887727298425031e7e70e474c2f263e892b9e9
parentd2de74e62c7b97eb47caf5285323e6b2d0da8956 (diff)
wcsnlen.3: Fix off-by-one error
Same change as in 45323bbef7fb06eec3fa210ee6c1651bbc57c38d. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
-rw-r--r--man3/wcsnlen.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/wcsnlen.3 b/man3/wcsnlen.3
index b85e2db4d..b23f7be1e 100644
--- a/man3/wcsnlen.3
+++ b/man3/wcsnlen.3
@@ -52,7 +52,7 @@ looks at only the first
wide characters at
.I s
and never beyond
-.IR s+maxlen .
+.IR s[maxlen\-1] .
.SH RETURN VALUE
The
.BR wcsnlen ()