]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: nconf: Format and print 'line' without a temporary copy
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 11 Aug 2025 16:16:48 +0000 (18:16 +0200)
committerNathan Chancellor <nathan@kernel.org>
Mon, 18 Aug 2025 17:46:19 +0000 (10:46 -0700)
commit35883b030c5f19f12c7fe53319c93cb740e476be
treeb64ae7d9f48130d2410deb644881376dc3e4b16b
parent2d0ec4a9319c5207fdd2359e8543ef35012e8d4e
kconfig: nconf: Format and print 'line' without a temporary copy

Use "%.*s" as the format specifier and supply the 'line' length 'len' to
mvwprintw() to format and print each line without making a temporary
copy. Remove the temporary buffer.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250811161650.37428-2-thorsten.blum@linux.dev
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/kconfig/nconf.gui.c