Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cputree: adjust snprintf sizes to avoid gcc warnings
Gcc detects potential overruns in our use of PATH_MAX arrays when parsing cpu topology. This commit corrects those issues by ensuing that the print size is no longer than the array size in all cases Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters