perf annotate: Make a copy of filename for passing to basename
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Sep 2012 15:06:50 +0000 (09:06 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 8 Sep 2012 20:14:43 +0000 (17:14 -0300)
commitbfd14b9a7231e7cf77520bca1848c40c6b6360ae
tree154f256831fcc91a6ab16591bc74c7c81fc5a1f0
parent12ceaded6b276c13d905cf09f0c1a1322022ea58
perf annotate: Make a copy of filename for passing to basename

The basename function may modify the string passed to it, so the string
should not be marked const.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Irina Tirdea <irina.tirdea@gmail.com>
Cc: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/1347116812-93646-2-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c