Module Name: src Committed By: riastradh Date: Sun Jan 26 06:17:02 UTC 2025
Modified Files: src/lib/libc/locale: wctomb.3 Log Message: wctomb(3): Nix spurious reference to nonexistent parameter n. The return value is bounded by MB_CUR_MAX, that's all. From C99, Sec. 7.20.7.3 `The wctomb function', paragraph 5, p. 323: > In no case will the return value be greater than the value of the > MB_CUR_MAX macro. PR lib/59031: wctomb(3) references undefined variable n To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libc/locale/wctomb.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/locale/wctomb.3 diff -u src/lib/libc/locale/wctomb.3:1.6 src/lib/libc/locale/wctomb.3:1.7 --- src/lib/libc/locale/wctomb.3:1.6 Mon Jun 27 08:18:34 2016 +++ src/lib/libc/locale/wctomb.3 Sun Jan 26 06:17:01 2025 @@ -1,4 +1,4 @@ -.\" $NetBSD: wctomb.3,v 1.6 2016/06/27 08:18:34 abhinav Exp $ +.\" $NetBSD: wctomb.3,v 1.7 2025/01/26 06:17:01 riastradh Exp $ .\" .\" Copyright (c)2002 Citrus Project, .\" All rights reserved. @@ -99,8 +99,7 @@ returns: Number of bytes for the valid multibyte character pointed to by .Fa s . There are no cases that the value returned is greater than -.Fa n -or the value of the +the value of the .Dv MB_CUR_MAX macro. .It -1