diff options
author | Carsten Weisse <[email protected]> | 2005-12-18 22:10:13 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-12-18 22:10:13 +0000 |
commit | 90135445c8833ff11a31bf37fa09a0b265904b55 (patch) | |
tree | 759086613c7c5dcab243ce690d7a9b8556fad534 /src/jake2/server | |
parent | 2b242d9d77cb7b04538f3434bdc5c95a7e1d763c (diff) |
byte[] <--> String
with latin 1 alias ISO-8859-1
Diffstat (limited to 'src/jake2/server')
-rw-r--r-- | src/jake2/server/SV_MAIN.java | 4 | ||||
-rw-r--r-- | src/jake2/server/SV_SEND.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/server/SV_MAIN.java b/src/jake2/server/SV_MAIN.java index bf12986..e9b876e 100644 --- a/src/jake2/server/SV_MAIN.java +++ b/src/jake2/server/SV_MAIN.java @@ -19,7 +19,7 @@ */ // Created on 13.01.2004 by RST. -// $Id: SV_MAIN.java,v 1.13 2005-12-18 17:25:09 cawe Exp $ +// $Id: SV_MAIN.java,v 1.14 2005-12-18 22:10:13 cawe Exp $ package jake2.server; import jake2.Defines; @@ -458,7 +458,7 @@ public class SV_MAIN { Com.BeginRedirect(Defines.RD_PACKET, SV_SEND.sv_outputbuf, Defines.SV_OUTPUTBUF_LENGTH, new Com.RD_Flusher() { public void rd_flush(int target, StringBuffer buffer) { - SV_SEND.SV_FlushRedirect(target, buffer.toString().getBytes()); + SV_SEND.SV_FlushRedirect(target, Lib.stringToBytes(buffer.toString())); } }); diff --git a/src/jake2/server/SV_SEND.java b/src/jake2/server/SV_SEND.java index 12c762f..df1bc55 100644 --- a/src/jake2/server/SV_SEND.java +++ b/src/jake2/server/SV_SEND.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 17.01.2004 by RST. -// $Id: SV_SEND.java,v 1.9 2005-12-16 21:18:23 salomo Exp $ +// $Id: SV_SEND.java,v 1.10 2005-12-18 22:10:12 cawe Exp $ package jake2.server; @@ -47,7 +47,7 @@ public class SV_SEND { public static void SV_FlushRedirect(int sv_redirected, byte outputbuf[]) { if (sv_redirected == Defines.RD_PACKET) { String s = ("print\n" + Lib.CtoJava(outputbuf)); - Netchan.Netchan_OutOfBand(Defines.NS_SERVER, Globals.net_from, s.length(), s.getBytes()); + Netchan.Netchan_OutOfBand(Defines.NS_SERVER, Globals.net_from, s.length(), Lib.stringToBytes(s)); } else if (sv_redirected == Defines.RD_CLIENT) { MSG.WriteByte(SV_MAIN.sv_client.netchan.message, Defines.svc_print); |