This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: char *p; placement and mysterious segfault on sprintf(p, "%d",3);
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: Miernik <miernik at ctnet dot pl>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 18 May 2003 16:04:51 +0100
- Subject: Re: char *p; placement and mysterious segfault on sprintf(p, "%d",3);
- References: <20030518090033.A10.4.NOFFLE@tarnica.miernik.lo>
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.