On 06/12/11 16:53, Steven Abner wrote:
> The buf2 is not terminated allowing access to data beyond the buf2.

That's how strftime is supposed to behave.  Programs such
as the test program that you gave are not safe.  They must
test the returned value before using the buffer.

See

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html

Reply via email to