perf machine: Use snprintf instead of sprintf
commitf4be904d2fa7c65e230ed4b1008ebdf5f4053ac3
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 22 Sep 2013 10:22:09 +0000 (22 13:22 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:17:27 +0000 (11 12:17 -0300)
tree19c857540882530cf6cb2f4b154bdbddd1ccc369
parenta9faa0cab619fad380c2669825aa84212943d528
perf machine: Use snprintf instead of sprintf

To avoid buffer overruns.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1379845338-29637-2-git-send-email-adrian.hunter@intel.com
[ Split from aa7fe3b ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c