• Ingo Molnar's avatar
    perf trace: Fix read_string() · 6f4596d9
    Ingo Molnar authored
    We did not account for the enclosing \0. Depending on what malloc()
    gave us this resulted in corrupted version string printouts.
    
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    6f4596d9
trace-event-read.c 9.47 KB