Closed vax-r closed 11 months ago
Read the article How to Write a Git Commit Message and rewrite your git commit messages.
I've made some modification to my commit message, please take a look when you have available time. Thanks
Thank @vax-r for contributing!
The origin
size
value insnprintf
ofowinterface_add
wasETH_ALEN
, which will only allow ETH_ALEN - 1 characters to write in the buffer when string size is too long.However, since the buffer starts from
inf_name + 1
, which only allowETH_ALEN - 1
characters to be written into, plus the last character must be'\0'
, so we should only allowETH_ALEN - 2
character to be written into the buffer.That's why I create the PR and fix the
size
value toETH_ALEN - 1