This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]