5cd49fb6008d9bb2ef0cbec7d38efbf02b76bfdd
This patch addresses a warning encountered during the build process:
warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a
region of size between 0 and 544 [-Wformat-truncation=]
snprintf(path, MAXPATHSIZE, "%s/%s/cache", node_dir, dir->d_name);
^~
note: ‘snprintf’ output between 8 and 807 bytes into a destination of size 545
snprintf(path, MAXPATHSIZE, "%s/%s/cache", node_dir, dir->d_name);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/38>
Description
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Other
1.1%