Re: fmemopen manpage (3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Lucien,

On 2/3/22 13:27, Lucien Gentis wrote:
> Hello,
> 
> In that phrase:
> 
> "If  buf is not NULL, then it should point to a buffer of at least len
> bytes allocated by the caller."
> 
> Should'nt it be "of at least size bytes" instead of "of at least len
> bytes" ? (where size is the second argument of fmemopen)
> 
> If not, what does "len" mean ?

Yup, you're right.  Fixed.

Thanks,

Alex

---
    fmemopen.3: wfix

    Fix incorrect identifier.

    Reported-by: Lucien Gentis <lucien.gentis@xxxxxxxxxx>
    Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>

diff --git a/man3/fmemopen.3 b/man3/fmemopen.3
index 50b0e4ff5..0dc4b8b1f 100644
--- a/man3/fmemopen.3
+++ b/man3/fmemopen.3
@@ -93,7 +93,7 @@ temporary buffer allocated by this call (but see
 If
 .I buf
 is not NULL, then it should point to a buffer of at least
-.I len
+.I size
 bytes allocated by the caller.
 .PP
 When a stream that has been opened for writing is flushed


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux