lkml.org 
[lkml]   [2011]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 1/2] perf tools: Collect tracing event data files directly
On Mon, Sep 26, 2011 at 07:43:02AM -0600, David Ahern wrote:
>
>

SNIP

> > + /*
> > + * The '+ 5' is for '/' we add to the patch, plus NULL byte,
> > + * and one safety byte ;)
> > + */
> > + file = malloc_or_die(strlen(path) + strlen(sys) +
> > + strlen(name) + strlen("format") + 5);
>
> Why not go the simple route and just use PATH_MAX?
>
> David

ok, seems more simple.. ;)

thanks,
jirka


\
 
 \ /
  Last update: 2011-09-26 17:01    [W:0.084 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site