diff options
| author | Tomasz Unger <tomasz.unger@yahoo.pl> | 2026-02-26 12:16:53 +0100 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-05-20 11:29:27 +0300 |
| commit | c565afd284e5b5f04e24b20018958ed7b9bc55a3 (patch) | |
| tree | c856e46ca98b9460f0defc04d7cb611723827a81 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 0812f34bf5dd3e1df495bf6f2c5fe4d140c10d37 (diff) | |
staging: media: atomisp: replace sprintf() with strscpy()
Auditing calls to sprintf(). This code is fine because we are
copying 9 characters into a 52 character buffer. But it would
be cleaner to use strscpy() instead. Additionally, the 2-argument
version of strscpy() checks at compile time that dst is an array,
not just a pointer.
This is the only sprintf() call in the whole driver.
Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
