On Thu, Apr 02, 2009 at 01:55:29PM -0700, Kaveh R. Ghazi wrote:
> From: "Marc Glisse" <[email protected]>
> >This could be related to a call to sprintf(str,...,str,...), which
> >according to the doc is undefined behaviour.
>
> Doc? I don't see it in the man page. Got a url?
man 3p sprintf says:
If copying takes place between objects that overlap as a result of a call to
sprintf() or snprintf(), the results are undefined.
ISO C99 7.19.6.6 has similar wording:
If copying takes place between objects that overlap, the behavior is undefined.
Jakub