changeset 72:8181cb01c64d tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:15:26 -0700
parents 7ae9b0c382ec
children accf93be8c12
files src/de/mud/terminal/vt320.java src/org/tn5250j/framework/tn5250/DataStreamProducer.java
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/de/mud/terminal/vt320.java	Fri Jun 13 19:13:05 2014 -0700
+++ b/src/de/mud/terminal/vt320.java	Fri Jun 13 19:15:26 2014 -0700
@@ -72,7 +72,7 @@
         // ignore line and column, just send the bytes to the host.
         int n = d.length;
         byte [] b = new byte [n];
-        for (int i=0; i<n; i++) b[i] = d[i] & 0x00ff;
+        for (int i=0; i<n; i++) b[i] = (byte)(d[i] & 0x00ff);
         write(b);
     }
 
--- a/src/org/tn5250j/framework/tn5250/DataStreamProducer.java	Fri Jun 13 19:13:05 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/DataStreamProducer.java	Fri Jun 13 19:15:26 2014 -0700
@@ -11,8 +11,11 @@
 import java.util.concurrent.BlockingQueue;
 
 import org.tn5250j.encoding.ICodePage;
+
 import android.util.Log;
 
+import de.mud.terminal.vt320;
+
 
 public class DataStreamProducer implements Runnable {
     private static final String TAG = "DataStreamProducer";