aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/ui/helpline.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-03-14 18:49:05 +0100
committerIngo Molnar <mingo@elte.hu>2012-03-14 18:49:05 +0100
commit89c5bd08df5841326abbf167d136bcf14cf759ed (patch)
tree064edb874800f4f233713c33bc555d58240bd963 /tools/perf/util/ui/helpline.c
parent762ad8a5330325b789cfb6dc896f81cf273ff4e9 (diff)
parenteae7a755ee81129370c8f555b0d5672e6673735d (diff)
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Some corner case fixes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/ui/helpline.c')
-rw-r--r--tools/perf/util/ui/helpline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/ui/helpline.c b/tools/perf/util/ui/helpline.c
index 4f48f5901b3..2f950c2641c 100644
--- a/tools/perf/util/ui/helpline.c
+++ b/tools/perf/util/ui/helpline.c
@@ -64,7 +64,7 @@ int ui_helpline__show_help(const char *format, va_list ap)
static int backlog;
pthread_mutex_lock(&ui__lock);
- ret = vsnprintf(ui_helpline__last_msg + backlog,
+ ret = vscnprintf(ui_helpline__last_msg + backlog,
sizeof(ui_helpline__last_msg) - backlog, format, ap);
backlog += ret;