[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141231112603.GB1256@krava.brq.redhat.com>
Date: Wed, 31 Dec 2014 12:26:03 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Namhyung Kim <namhyung@...nel.org>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
LKML <linux-kernel@...r.kernel.org>,
David Ahern <dsahern@...il.com>,
Stephane Eranian <eranian@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Andi Kleen <andi@...stfloor.org>,
Frederic Weisbecker <fweisbec@...il.com>
Subject: Re: [PATCH 04/37] perf tools: Add multi file interface to
perf_data_file
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 ?
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists