From: Roland McGrath Date: Mon, 6 Feb 1995 22:36:43 +0000 (+0000) Subject: Cast results of `alloca' to `char *' in two places. X-Git-Tag: 3.72.6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3cfccf0b81887b70c3c9d261c0c6634659e08fd;p=thirdparty%2Fmake.git Cast results of `alloca' to `char *' in two places. --- diff --git a/expand.c b/expand.c index d2d798e3..7348fb26 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';