This is the mail archive of the gcc-patches@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: committed: fix MMIX misuse of ggc_alloc_string


On 11/21/07, Hans-Peter Nilsson <hp@bitrange.com> wrote:

> +      char *newstr = alloca (len + 2);
> +      newstr[0] = '@';
>        strcpy (newstr + 1, str);
>        *newstr = '@';

not an issue pre say but you are setting newstr[0] twice here.

Thanks,
Andrew Pinski


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