lkml.org 
[lkml]   [2017]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3 4/7] powerpc: kprobes: use safer string functions in kprobe_lookup_name()
Date
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

\
 
 \ /
  Last update: 2017-04-21 17:56    [W:0.422 / U:2.832 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site