Re: Small bug in vsnprintf(3) man page

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

 



Hello Erik

On 01/31/2017 11:02 PM, Erik Roland van der Meer wrote:
> Hello,
> 
> I believe I have discovered a small bug in the vsnprintf(3) man page.
> It occurs online at http://man7.org/linux/man-pages/man3/fprintf.3.html
> which reports itself as part of the 4.09 release. I discovered it in the
> Ubuntu 16.04 man page with reports itself as part of the 4.04 release.
> 
> It is in the code example of char *make_message(const char *fmt, ...) at
> the end.
> I believe that the second call to va_end(ap) should be moved to above the
> if-block
> that precedes it, so that the va_list ap will be cleaned up in all cases.

Yes, that seems right to me. I've changed as you suggest

> With deep gratitude for all the help the manpages have been for me
> throughout the years,

You're very welcome!

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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