make alloca call type correct
From-SVN: r123374
This commit is contained in:
parent
47ecd38dbf
commit
4cd97075ff
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user