aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-06-23 21:03:21 +0000
committerKenny Root <kenny@the-b.org>2009-06-23 21:03:21 +0000
commitbb34d2e6e0d8df6544fe69f5ad41899368781f1a (patch)
treecb4b53b7e965c5f01bfda0dff3df8bdae2fa696d
parent1f9a96b88003ea87709e38883b85605c9a108a2c (diff)
downloadconnectbot-bb34d2e6e0d8df6544fe69f5ad41899368781f1a.tar.gz
connectbot-bb34d2e6e0d8df6544fe69f5ad41899368781f1a.tar.bz2
connectbot-bb34d2e6e0d8df6544fe69f5ad41899368781f1a.zip
range checking on vt320 OSC handling
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@327 df292f66-193f-0410-a5fc-6d59da041ff2
-rw-r--r--src/de/mud/terminal/vt320.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java
index e962400..7c1bbb3 100644
--- a/src/de/mud/terminal/vt320.java
+++ b/src/de/mud/terminal/vt320.java
@@ -1175,7 +1175,7 @@ public void setScreenSize(int c, int r, boolean broadcast) {
}
private void handle_osc(String osc) {
- if (osc.substring(0, 2).equals("4;")) {
+ if (osc.length() > 2 && osc.substring(0, 2).equals("4;")) {
// Define color palette
String[] colorData = osc.split(";");