lkml.org 
[lkml]   [2014]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 04/37] perf tools: Add multi file interface to perf_data_file
On Wed, Dec 31, 2014 at 8:26 PM, Jiri Olsa <jolsa@redhat.com> wrote:
> On Wed, Dec 24, 2014 at 04:15:00PM +0900, Namhyung Kim wrote:
>
> SNIP
>
>> +
>> static int open_file_read(struct perf_data_file *file)
>> {
>> struct stat st;
>> + char path[PATH_MAX];
>> int fd;
>> char sbuf[STRERR_BUFSIZE];
>>
>> - fd = open(file->path, O_RDONLY);
>> + strcpy(path, file->path);
>
> strncpy ?

Will change. :)

Thanks,
Namhyung


\
 
 \ /
  Last update: 2014-12-31 16:01    [W:12.630 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site