diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 10:07:39 +0100 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-03-20 14:44:47 +0200 |
commit | b40e288bfb530e4e12c22c3f8e8ba19e419013da (patch) | |
tree | 020b19c86866c690fe800fd281bb981951bac362 /tools/power | |
parent | 1d6f8c5bac93cceb2d4ac8e6331050652004d802 (diff) |
platform/x86: sony-laptop: 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>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions