Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: use scnprintf() to avoid potential buffer overflow
strlcpy() returns the total length of the string they tried to create, so we should not use its return value without any check. scnprintf() returns the number of characters written into @buf not including the trailing '\0', so use it instead here. Signed-off-by: Changli Gao <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information