NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/59031: wctomb(3) references undefined variable n
>Number: 59031
>Category: lib
>Synopsis: wctomb(3) references undefined variable n
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 26 03:45:00 +0000 2025
>Originator: Robert Elz
>Release: NetBSD 10.99.12
>Organization:
>Environment:
System: NetBSD jacaranda.noi.kre.to 10.99.12 NetBSD 10.99.12 (JACARANDA:1.1-20250119) #172: Sun Jan 19 08:59:18 +07 2025 kre%jacaranda.noi.kre.to@localhost:/usr/obj/testing/kernels/amd64/JACARANDA amd64
Architecture: x86_64
Machine: amd64
>Description:
wctomb.3 says:
RETURN VALUES
positive Number of bytes for the valid multibyte character pointed
to by s. There are no cases that the value returned is
greater than n or the value of the MB_CUR_MAX macro.
WTF is n ? There is no 'n' in this function. That sentence might have
been cut&pasted from the man page for mbtowc(3) which does have an 'n' parameter.
>How-To-Repeat:
RTFM.
>Fix:
s/than n or//
That exact substitution won't work because of markup.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index