aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/Console.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2008-03-02 16:43:18 +0000
committerCarsten Weisse <[email protected]>2008-03-02 16:43:18 +0000
commitebc94f975f45c2847eea390abf77ff768ce50e83 (patch)
tree9705aee62217529710b8125c12e94edc35f7848b /src/jake2/client/Console.java
parentd72b3796ccc137dd90a161333dcb6ceb325c8ff0 (diff)
bugfix: cast the space to byte avoid array overflows
Diffstat (limited to 'src/jake2/client/Console.java')
-rw-r--r--src/jake2/client/Console.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/client/Console.java b/src/jake2/client/Console.java
index af2dd3a..9a501c2 100644
--- a/src/jake2/client/Console.java
+++ b/src/jake2/client/Console.java
@@ -2,7 +2,7 @@
* Con.java
* Copyright (C) 2003
*
- * $Id: Console.java,v 1.8 2008-03-02 14:56:22 cawe Exp $
+ * $Id: Console.java,v 1.9 2008-03-02 16:43:18 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -294,7 +294,7 @@ public final class Console extends Globals {
* Globals.con.linewidth;
int e = i + Globals.con.linewidth;
while (i++ < e)
- Globals.con.text[i] = ' ';
+ Globals.con.text[i] = (byte) ' ';
}
/*