summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 10:07:39 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-20 14:44:47 +0200
commitb40e288bfb530e4e12c22c3f8e8ba19e419013da (patch)
tree020b19c86866c690fe800fd281bb981951bac362 /tools/power
parent1d6f8c5bac93cceb2d4ac8e6331050652004d802 (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