summaryrefslogtreecommitdiff
path: root/drivers/media/usb/stk1160/stk1160-v4l.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 10:08:51 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-03-14 13:11:58 +0300
commit949fe25f2ad31f72572dcad491843d355dc93b32 (patch)
treed470bf82984c147f3480577862145fa2a63a080f /drivers/media/usb/stk1160/stk1160-v4l.c
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
downloadlinux-949fe25f2ad31f72572dcad491843d355dc93b32.tar.xz
ACPI: fan: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Also adjust the argument to really match with the actually remaining buffer size. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/media/usb/stk1160/stk1160-v4l.c')
0 files changed, 0 insertions, 0 deletions