lkml.org 
[lkml]   [2020]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools: net: traceevent: Fix 'snprintf' return value check in 'tep_filter_strerror'
On Thu, 15 Oct 2020 15:12:53 +0000
Walter Harms <wharms@bfs.de> wrote:

> i guess the whole thing can be made more simple
>
> we have len and buflen
>
> len=strlen(filter->error_buffer);
> if (len >= buflen )
> return -1;
>
> strcpy(buf, filter->error_buffer);
>

Either is fine, but we are moving libtraceevent into it's own library,
which is located here:

https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/

-- Steve

\
 
 \ /
  Last update: 2020-10-15 17:19    [W:0.065 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site