• Alastair Robertson's avatar
    Fix bug when printing more than one symbol with printf · 1585341b
    Alastair Robertson authored
    e.g. The first symbol would be blank/corrupted when running:
        printf("%s %s\n", func, func)
    
    This was caused by a dodgy conversion from std::string
    to C-string, where the result of ".c_str()" was being
    saved, but the underlying std::string was modified by
    the vector it was being stored in, invalidating the C-string
    1585341b
bpftrace.cpp 16.8 KB