diff options
author | meissner <> | 2007-03-30 21:40:19 +0000 |
---|---|---|
committer | meissner <> | 2007-03-30 21:40:19 +0000 |
commit | 073697662083007d053e680b11cfe675f6354647 (patch) | |
tree | b6bcfbf5866e4083bd0b22ca145c41d33e31ccca /libcpp | |
parent | f2f8956222614289afe2c3258ea81e39eb42fafd (diff) |
make alloca call type correct
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/directives.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index a8be346bc56..a56357f392e 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -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. diff --git a/libcpp/directives.c b/libcpp/directives.c index d9cf9d27204..ccb9f32b61d 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -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); |