make alloca call type correct

From-SVN: r123374
This commit is contained in:
Michael Meissner 2007-03-30 22:40:19 +00:00 committed by Michael Meissner
parent 47ecd38dbf
commit 4cd97075ff
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-03-30 Michael Meissner <michael.meissner@amd.com>
* directives.c (lex_macro_node_from_str): Fix alloca call to be
type correct.
2007-03-30 Richard Henderson <rth@redhat.com>
* directives.c (lex_macro_node_from_str): New.

View File

@ -2083,7 +2083,7 @@ static cpp_hashnode *
lex_macro_node_from_str (cpp_reader *pfile, const char *str)
{
size_t len = strlen (str);
uchar *buf = (char *) alloca (len + 1);
uchar *buf = (uchar *) alloca (len + 1);
cpp_hashnode *node;
memcpy (buf, str, len);