Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 404:ec74f347ab5f
fix bad args to arrays.fill(); bump version number
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 21 Oct 2014 13:11:59 -0700 |
parents | 14aa0621aa7d |
children | d3c5480e8441 |
comparison
equal
deleted
inserted
replaced
403:fa6c9ab5a5e2 | 404:ec74f347ab5f |
---|---|
449 char[] arg2 = new char[4 + len]; | 449 char[] arg2 = new char[4 + len]; |
450 arg2[2] = (char)(l & 0x0000ffff); | 450 arg2[2] = (char)(l & 0x0000ffff); |
451 arg2[3] = (char)(c & 0x0000ffff); | 451 arg2[3] = (char)(c & 0x0000ffff); |
452 int base = 4; | 452 int base = 4; |
453 | 453 |
454 if ((l >= buffer.height) || (c + len >= buffer.width)) { | 454 if ((l >= buffer.height) || (c + len > buffer.width)) { |
455 Arrays.fill(arg2, base, len - 1, ' '); | 455 Arrays.fill(arg2, base, base + len, ' '); |
456 } | 456 } |
457 else { | 457 else { |
458 System.arraycopy(buffer.charArray[buffer.screenBase + l], c, arg2, base, len); | 458 System.arraycopy(buffer.charArray[buffer.screenBase + l], c, arg2, base, len); |
459 } | 459 } |
460 | 460 |