Re: [PATCH v2] kconfig: nconf: Fix uncleared lines on help screens

From: Nicolas Schier
Date: Wed Jul 23 2025 - 02:28:37 EST


On Tue, Jul 22, 2025 at 10:58:37PM +0530, Shankari Anand wrote:
> Commit 1b92b18ec419 ("kconfig: nconf: Ensure null termination where
> strncpy is used") introduced a regression where
> help screens (F1, F2, F3) no longer properly clear short lines of text,
> resulting in duplicated or trailing content when lines are overwritten.
>
> Revert the null-termination change to match
> the actual length of the copied string.
>
> Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/lkml/CAK7LNAT54nvwYmTy20Ep8U2kr4thn68yYWXi9R-d3Yx3iXs=Bg@xxxxxxxxxxxxxx/T/#
> Fixes: 1b92b18ec419 ("kconfig: nconf: Ensure null termination where strncpy is used")
> Signed-off-by: Shankari Anand <shankari.ak0208@xxxxxxxxx>
> Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> ---

Tested-by: Nicolas Schier <n.schier@xxxxxx>
Acked-by: Nicolas Schier <n.schier@xxxxxx>

Attachment: signature.asc
Description: PGP signature