lkml.org 
[lkml]   [2013]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2] (Was: perf_event_mmap(vma) && !vma->vm_mm)
On Thu, Oct 17, 2013 at 08:24:17PM +0200, Oleg Nesterov wrote:
> Subject: [PATCH] perf: Factor out strncpy() in perf_event_mmap_event()
> From: Oleg Nesterov <oleg@redhat.com>
> Date: Thu, 17 Oct 2013 20:04:17 +0200
>
> While this is really minor, but strncpy() does the unnecessary
> zero-padding till the end of tmp[16] and it is called every time
> we are going to use the string literal.
>
> Turn these strncpy()'s into the single strlcpy() under the new
> label, saves 72 bytes.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Sure why not.. applied, thanks!


\
 
 \ /
  Last update: 2013-10-17 23:41    [W:0.067 / U:40.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site