diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-11 18:16:48 +0200 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2025-08-18 10:46:19 -0700 |
| commit | 35883b030c5f19f12c7fe53319c93cb740e476be (patch) | |
| tree | b64ae7d9f48130d2410deb644881376dc3e4b16b /usr/gen_init_cpio.c | |
| parent | kbuild: userprogs: avoid duplication of flags inherited from kernel (diff) | |
| download | linux-35883b030c5f19f12c7fe53319c93cb740e476be.tar.gz linux-35883b030c5f19f12c7fe53319c93cb740e476be.zip | |
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>
Diffstat (limited to 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions
