fix gcc-11.0 warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ba9f9c2d2c
commit
fe2d8065e3
4 changed files with 4 additions and 4 deletions
|
@ -1314,7 +1314,7 @@ static NOINLINE void input_tab(smallint *lastWasTab)
|
|||
strcpy(&command[cursor_mb], chosen_match + match_pfx_len);
|
||||
len = load_string(command);
|
||||
/* add match and tail */
|
||||
sprintf(&command[cursor_mb], "%s%s", chosen_match + match_pfx_len, match_buf);
|
||||
stpcpy(stpcpy(&command[cursor_mb], chosen_match + match_pfx_len), match_buf);
|
||||
command_len = load_string(command);
|
||||
/* write out the matched command */
|
||||
/* paranoia: load_string can return 0 on conv error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue