> From: Bruce Richardson [mailto:[email protected]]
> Sent: Monday, 19 October 2026 09.48
> 
> On Fri, Oct 16, 2026 at 10:13:53PM +0200, Morten Brørup wrote:
> > snprintf() doesn't ensure zero-terminated string.
> 
> Actually it does. If return value is size of more, then truncation has
> occurred, and only size-1 bytes plus null have been written.

Sorry, you're right!
Got it mixed up with strncpy().

-Morten

Reply via email to