mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 05:23:49 +08:00
* readline.c (rl_complete_internal): Cast alloca to (char *) to
avoid warning.
This commit is contained in:
parent
772f0867c3
commit
5a41df75f6
@ -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.
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user