From f3cfccf0b81887b70c3c9d261c0c6634659e08fd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 6 Feb 1995 22:36:43 +0000 Subject: Cast results of `alloca' to `char *' in two places. --- expand.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index d2d798e..7348fb2 100644 --- a/expand.c +++ b/expand.c @@ -292,7 +292,8 @@ variable_expand (line) } else { - pattern = alloca (subst_end - subst_beg + 1); + pattern = (char *) alloca (subst_end - subst_beg + + 1); bcopy (subst_beg, pattern, subst_end - subst_beg); pattern[subst_end - subst_beg] = '\0'; } @@ -307,8 +308,9 @@ variable_expand (line) } else { - replace = alloca (replace_end - replace_beg - + 1); + replace = (char *) alloca (replace_end + - replace_beg + + 1); bcopy (replace_beg, replace, replace_end - replace_beg); replace[replace_end - replace_beg] = '\0'; -- cgit v1.2.3