Tag: 96b02d78a7e47cd189f6b307c5513fec6b2155dc

perf_event: Remove redundant zero fill

Author: Márton Németh <nm127@freemail.hu> The buffer is first zeroed out by memset(). Then strncpy() is used to fill the content. The strncpy() function also pads the string till the end of the specified length, which is redundant. The strncpy() does not ensures that the string will be properly closed with 0. Use strlcpy() instead. The …

Continue reading