[PATCH] egltrace/android: Fix tracing Zygote processes (v2)
Alexander Monakov
amonakov at ispras.ru
Mon Jun 17 11:49:10 PDT 2013
On Mon, Jun 17, 2013 at 10:15 PM, José Fonseca <jose.r.fonseca at gmail.com> wrote:
> Don't know if this is what you meant, but indeed the str() call in
> `truncate(strlen(str())) ` indeed is not correct, as the assertion inside
> str() may fail erroneously.
s/str()/buf()/ then:
void truncate(size_t length) {
assert(length < buffer.size());
buffer[length] = 0;
buffer.resize(length + 1);
+ assert(strlen(buf()) == length);
}
More information about the apitrace
mailing list