Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/procinfo: use strlcpy for copying string
[ upstream commit 7edbf7d ] Replaced strncpy and strcpy with strlcpy. Also replaced snprintf with strlcpy where applicable. Using strlcpy is safe practice when copying strings, as it will include a null terminator. Fixes: 2deb6b5 ("app/procinfo: add collectd format and host id") Fixes: 8a37f37 ("app/procinfo: add --show-port") Reported-by: Reshma Pattan <reshma.pattan@intel.com> Signed-off-by: Ciara Power <ciara.power@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
- Loading branch information
1 parent
035fed4
commit bc12c8f
Showing
1 changed file
with
18 additions
and
18 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