]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (stts751) Fix buffer size passed to snprintf
authorJean Delvare <jdelvare@suse.de>
Tue, 19 Sep 2017 12:59:34 +0000 (14:59 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Oct 2017 01:36:03 +0000 (18:36 -0700)
commit1e9ff32546a8385a006b5f169bc01aad7c645614
treedddab88c2fd11da4e1f5641189cbbe31cbd67d94
parentd555c95ec34279a25b9478b225e74a0d1877775d
hwmon: (stts751) Fix buffer size passed to snprintf

Function snprintf already cares for the terminating NUL at the end of
the string, the caller doesn't need to do it.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Andrea Merello <andrea.merello@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/stts751.c