Re: [PATCH iproute2] arpd: drop unnecessary explicit null termination

2016-01-03 Thread Stephen Hemminger
On Sun, 3 Jan 2016 17:09:44 +0100 Andreas Henriksson wrote: > This is a followup to a previous commit 61170fd88d264c > "get rid of unnecessary fgets() buffer size limitation". > > If fgets guarantees buffer will be null terminated in the > given size, then we can also drop the explicit terminat

[PATCH iproute2] arpd: drop unnecessary explicit null termination

2016-01-03 Thread Andreas Henriksson
This is a followup to a previous commit 61170fd88d264c "get rid of unnecessary fgets() buffer size limitation". If fgets guarantees buffer will be null terminated in the given size, then we can also drop the explicit termination. While at it, also add an unrelated FIXME comment about potential un