Fix logic issue in CrashReportCategory patch, blame Jadedcat for sloppy quick patch.

This commit is contained in:
LexManos 2013-04-19 22:08:07 -07:00
parent 74742fd12f
commit 2d84dcd44e

View file

@ -10,7 +10,7 @@
+ int len = astacktraceelement.length - 3 - par1; + int len = astacktraceelement.length - 3 - par1;
+ if (len <= 0) len = astacktraceelement.length; + if (len <= 0) len = astacktraceelement.length;
+ this.stackTrace = new StackTraceElement[len]; + this.stackTrace = new StackTraceElement[len];
+ System.arraycopy(astacktraceelement, len, this.stackTrace, 0, this.stackTrace.length); + System.arraycopy(astacktraceelement, astacktraceelement.length - len, this.stackTrace, 0, this.stackTrace.length);
return this.stackTrace.length; return this.stackTrace.length;
} }