On 20/02/2018 15:11, Bruce Richardson wrote: [..] > Again, I think the better fix is to replace strncpy with snprintf which > will guarantee the null termination, unlike strncpy which is nasty that > way. OK, v2 on way..