char *p; placement and mysterious segfault on sprintf(p, "%d", 3);

Graham Stott graham.stott@btinternet.com
Sun May 18 15:04:00 GMT 2003


Miernik wrote:

> 
> What am I missing here?
Yep,

Examine your code where do you think sprintf is writing
the result?

> Or did I found a bug in gcc?
No.







More information about the Gcc-help mailing list