* readline.c (rl_complete_internal): Cast alloca to (char *) to

avoid warning.
This commit is contained in:
Stu Grossman 1992-09-30 20:00:22 +00:00
parent 772f0867c3
commit 5a41df75f6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 30 12:58:57 1992 Stu Grossman (grossman at cygnus.com)
* readline.c (rl_complete_internal): Cast alloca to (char *) to
avoid warning.
Fri Sep 25 12:45:05 1992 Stu Grossman (grossman at cygnus.com)
* readline.c (clear_to_eol, rl_generic_bind): Make static.

View File

@ -3884,7 +3884,7 @@ rl_complete_internal (what_to_do)
/* Found an embedded word break character in a potential
match, so need to prepend a quote character if we are
replacing the completion string. */
replacement = alloca (strlen (matches[0]) + 2);
replacement = (char *)alloca (strlen (matches[0]) + 2);
quote_char = *rl_completer_quote_characters;
*replacement = quote_char;
strcpy (replacement + 1, matches[0]);