[oe] [meta-networking][PATCH 5/5] ippool: Fix strncpy -Wformat-truncation warning
Adrian Bunk
bunk at stusta.de
Fri Dec 27 08:12:04 UTC 2019
On Thu, Dec 26, 2019 at 07:56:39PM -0800, Khem Raj wrote:
>...
> +--- a/cli/cli_readline.c
> ++++ b/cli/cli_readline.c
> +@@ -261,6 +261,11 @@ static void cli_rl_display_wrapped_text(
> + if (left_margin == 0) {
> + left_margin = 3;
> + }
> ++
> ++ if (left_margin >= strlen(text_buf)) {
> ++ left_margin = strlen(text_buf);
> ++ }
>...
This doesn't make sense, text_buf is an uninitialized variable.
cu
Adrian
More information about the Openembedded-devel
mailing list