Takashi Iwai 9b9f2219b2 drm: sysfs: 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().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311073540.7108-1-tiwai@suse.de
2020-03-11 14:54:09 +01:00
..
2020-01-20 11:42:57 +10:00
2020-03-02 09:22:43 +01:00
2020-01-30 08:04:01 -08:00
2020-02-21 05:44:40 +10:00
2020-03-02 09:22:49 +01:00
2020-03-02 09:22:56 +01:00
2020-02-21 05:44:40 +10:00
2020-02-17 10:34:34 +01:00
2020-01-14 16:22:17 -05:00
2019-10-08 18:29:00 +02:00
2020-02-21 05:44:40 +10:00
2020-01-14 16:22:17 -05:00
2019-12-17 13:57:54 +01:00
2020-01-14 16:22:17 -05:00
2020-03-09 09:22:50 +00:00