git: 9front

Download patch

ref: b8df3d2ccfd0b025590bb71f6eabdbd287c8696d
parent: 7f7ab6c3571a020e547ef51edda5718674fcecd7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Mar 11 13:48:24 EDT 2015

encode(2): clarify lim argument to enc*(), add SOURCE reference for encodefmt()

--- a/sys/man/2/encode
+++ b/sys/man/2/encode
@@ -36,7 +36,7 @@
 encoded string (without the null) or -1 if the encoding fails.
 The encoding fails if
 .IR lim ,
-the length of the output buffer, is too small.
+the length of the output buffer (including null), is too small.
 .PP
 .IR Dec16 ,
 .I dec32
@@ -83,3 +83,5 @@
 .B /sys/src/libc/port/u32.c
 .br
 .B /sys/src/libc/port/u64.c
+.br
+.B /sys/src/libc/port/encodefmt.c
--