From 4cd97075ff0332bcdf5419fa79804ad8a66de619 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 30 Mar 2007 22:40:19 +0000 Subject: [PATCH] make alloca call type correct From-SVN: r123374 --- libcpp/ChangeLog | 5 +++++ libcpp/directives.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * directives.c (lex_macro_node_from_str): Fix alloca call to be + type correct. + 2007-03-30 Richard Henderson * 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); -- 2.30.2