aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-13 14:03:34 +0100
committerMark Brown <[email protected]>2020-03-13 14:49:58 +0000
commit578194290d0bf85b087e73e35ea74574012cfd96 (patch)
tree86883924145abb7c8f2c8ced40285c7341d3f889 /tools/perf/util/scripting-engines/trace-event-python.c
parentc42464a4e67383d8daeeaa668ff875e399a38105 (diff)
ASoC: wm_adsp: Use scnprintf() for the limited buffer output
snprintf() is a hard-to-use function, it's especially difficult to use it for concatenating substrings in a buffer with a limited size. Since snprintf() returns the would-be-output size, not the actual size, the subsequent use of snprintf() may point to the incorrect position. Use scnprintf() instead for fixing such potential errors. Signed-off-by: Takashi Iwai <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions