]> git.cworth.org Git - apitrace/blobdiff - wrappers/trace.cpp
gui: Fix debug build.
[apitrace] / wrappers / trace.cpp
index d79b11bbd306a700e7fac55d485c9210c63f57f8..33b5cf183219773a9d68b27fd2fa11d1f9987626 100644 (file)
@@ -70,7 +70,7 @@ getZygoteProcessName(void)
     assert(fd >= 0);
     len = read(fd, buf, size - 1);
     close(fd);
-    path.truncate(len);
+    path.truncate();
 
     return path;
 }