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)
commitfc483a9bf795ebf49bf0c872d125391d8fee2f3f
treedddab88c2fd11da4e1f5641189cbbe31cbd67d94
parent6dcf2fb5e8db3704f50af1f198256cb4e2453f8b
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