Re: [PATCH 0/2] staging: Fix some warnings from strncpy()

2018-08-27 Thread Greg KH
On Mon, Aug 20, 2018 at 12:51:22PM -0500, Larry Finger wrote: > When the size argument in a call to strncpy() is the size of the > destimation, gcc8 issues a warning. These patches fix the potential > problem by replacing the strncpy() with strlcpy(). > > Signed-off-by: Larry Finger > > >

[PATCH 0/2] staging: Fix some warnings from strncpy()

2018-08-20 Thread Larry Finger
When the size argument in a call to strncpy() is the size of the destimation, gcc8 issues a warning. These patches fix the potential problem by replacing the strncpy() with strlcpy(). Signed-off-by: Larry Finger Larry Finger (2): staging: rtl8192e: Fix compiler warning about strncpy