diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 17:52:18 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 17:52:18 +0200 |
commit | fe2d8065e3e3c251c054a30e9823977e20b5ab7c (patch) | |
tree | e020c35302c0fface2e39414cfae9f4ba6531b1c /libbb/lineedit.c | |
parent | ba9f9c2d2c57f6041c6c01ba7c0e8379a5f5d440 (diff) | |
download | busybox-w32-fe2d8065e3e3c251c054a30e9823977e20b5ab7c.tar.gz busybox-w32-fe2d8065e3e3c251c054a30e9823977e20b5ab7c.tar.bz2 busybox-w32-fe2d8065e3e3c251c054a30e9823977e20b5ab7c.zip |
fix gcc-11.0 warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 2cae4711a..68d19e127 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1314,7 +1314,7 @@ static NOINLINE void input_tab(smallint *lastWasTab) | |||
1314 | strcpy(&command[cursor_mb], chosen_match + match_pfx_len); | 1314 | strcpy(&command[cursor_mb], chosen_match + match_pfx_len); |
1315 | len = load_string(command); | 1315 | len = load_string(command); |
1316 | /* add match and tail */ | 1316 | /* add match and tail */ |
1317 | sprintf(&command[cursor_mb], "%s%s", chosen_match + match_pfx_len, match_buf); | 1317 | stpcpy(stpcpy(&command[cursor_mb], chosen_match + match_pfx_len), match_buf); |
1318 | command_len = load_string(command); | 1318 | command_len = load_string(command); |
1319 | /* write out the matched command */ | 1319 | /* write out the matched command */ |
1320 | /* paranoia: load_string can return 0 on conv error, | 1320 | /* paranoia: load_string can return 0 on conv error, |