misc: cs40l25: Use strscpy to write the buffer

Use strscpy to write to the buffer in cs40l2x_cp_trigger_queue_show
to avoid writing incorrect addresses using snprintf.
Also, checking to see if the input trigger queue string is too large.

Bug: 224000736
Test: push a poc file and check the log
Change-Id: Id46d8a0dbe8eea188362e4f2ca54ccbd720d2bc8
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Chase Wu <chasewu@google.com>
2 files changed
tree: 4c639713c3c5888832275c2e9be269b5239f8fd0
  1. audiometrics/
  2. cs35l41/
  3. cs35l45/
  4. cs40l25/
  5. cs40l26/
  6. drv2624/