X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Ftrace.cpp;h=33b5cf183219773a9d68b27fd2fa11d1f9987626;hb=771273711a483847df104149a992746b44bb8314;hp=d79b11bbd306a700e7fac55d485c9210c63f57f8;hpb=9ca97158a7297fbdcf86635adf81feb2a3385055;p=apitrace diff --git a/wrappers/trace.cpp b/wrappers/trace.cpp index d79b11b..33b5cf1 100644 --- a/wrappers/trace.cpp +++ b/wrappers/trace.cpp @@ -70,7 +70,7 @@ getZygoteProcessName(void) assert(fd >= 0); len = read(fd, buf, size - 1); close(fd); - path.truncate(len); + path.truncate(); return path; }