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>
Wed, 14 Apr 2021 06:22:49 +0000 (15:22 +0900)
commit68876c38c4b30653c1779414954ce747a455253c
treea6b5b6cb1612a6aaee78fcf443d67f15b23d8991
parentf02aa48dde8b96eef5998b049ad11547bfc16080
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