mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-31 03:25:08 +00:00
Cast results of alloca' to
char *' in two places.
This commit is contained in:
parent
016e1beef5
commit
f3cfccf0b8
1 changed files with 5 additions and 3 deletions
8
expand.c
8
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';
|
||||
|
|
Loading…
Reference in a new issue