egltrace/android: Fix tracing Zygote processes
egltrace/android: Fix tracing Zygote processes

The root cause of the problem was a bug in the implementation of
getZygoteProcessName.  When the wrap.$procname approach is used, reading
/proc/cmdline produces "$procname\0/system/bin\0--application\0"... (with
embedded zero characters).

Fixed by simply not supplying length argument to the truncate call, which will
truncate to strlen().  The same bug is also present in getProcessName.

swq0553/apitrace,schulmar/apitrace,surround-io/apitrace,trtt/apitrace,tuanthng/apitrace,surround-io/apitrace,swq0553/apitrace,swq0553/apitrace,EoD/apitrace,schulmar/apitrace,tuanthng/apitrace,trtt/apitrace,apitrace/apitrace,joshua5201/apitrace,schulmar/apitrace,apitrace/apitrace,EoD/apitrace,trtt/apitrace,EoD/apitrace,trtt/apitrace,schulmar/apitrace,joshua5201/apitrace,tuanthng/apitrace,tuanthng/apitrace,tuanthng/apitrace,joshua5201/apitrace,swq0553/apitrace,joshua5201/apitrace,surround-io/apitrace,swq0553/apitrace,EoD/apitrace,surround-io/apitrace,EoD/apitrace,schulmar/apitrace,apitrace/apitrace,joshua5201/apitrace,trtt/apitrace,apitrace/apitrace,surround-io/apitrace