From ebc94f975f45c2847eea390abf77ff768ce50e83 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 2 Mar 2008 16:43:18 +0000 Subject: bugfix: cast the space to byte avoid array overflows --- src/jake2/client/Console.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jake2/client') 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) ' '; } /* -- cgit v1.2.3