On Wed, Dec 31, 2014 at 8:26 PM, Jiri Olsa <jo...@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to