RE: [PATCH v3 4/7] powerpc: kprobes: use safer string functions in kprobe_lookup_name()

From: David Laight
Date: Fri Apr 21 2017 - 11:55:52 EST


From: Naveen N. Rao
> Sent: 19 April 2017 13:51
...
> dot_name[0] = '\0';
> - strncat(dot_name, name, sizeof(dot_name) - 1);
> + strlcat(dot_name, name, sizeof(dot_name));
...

Is that really zeroing the first byte just so it can append to it?

David