]> Gentwo Git Trees - linux/.git/commit
ASoC: SOF: sof-client-probes: Replace snprintf() with scnprintf()
authorHariKrishna Sagala <hariconscious@gmail.com>
Tue, 11 Nov 2025 05:29:21 +0000 (10:59 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 18 Nov 2025 18:54:14 +0000 (18:54 +0000)
commite45979641a9a9dbb48fc77c5b36a5091a92e7227
tree625d6aee55bc674644250e4e87ed00322312fcf9
parentf5cb3ee251b4f9db2761aced191f10579bd7e64e
ASoC: SOF: sof-client-probes: Replace snprintf() with scnprintf()

As per the C99 standard snprintf() returns the length of the data
that *would have been* written if there were enough space for it.
It's generally considered safer to use the scnprintf() variant.

Link: https://github.com/KSPP/linux/issues/105
Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com>
Link: https://patch.msgid.link/20251111052920.56459-2-hariconscious@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-client-probes-ipc4.c