]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: mconf,nconf: remove unneeded '\0' termination after snprintf()
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 10 Apr 2021 19:45:30 +0000 (04:45 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Apr 2021 00:32:29 +0000 (09:32 +0900)
commit3aa121e85c44a1f717755ce009a5ebdc769c9ab7
tree38a42ebbf96c9760f8e7555e5e8bda019532281b
parent9006d0cf18020ad92a4683785312828ae1c90506
kconfig: mconf,nconf: remove unneeded '\0' termination after snprintf()

snprintf() always terminates the destination buffer with '\0' even if
the buffer is not long enough. (In this case, the last element of the
buffer becomes '\0'.)

The explicit termination is unneeded.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/mconf.c
scripts/kconfig/nconf.c