aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-06-30 08:36:22 +0000
committerHolger Zickner <[email protected]>2005-06-30 08:36:22 +0000
commitf91c151af8bf859e95801206f19556e2121447de (patch)
treea942c9c70eadf3aa6a81cf3440266bf7aa77dccd /src/jake2
parentf00bc875900c0e2ce5d11713e479d677f22f8e64 (diff)
make sure not to exceed max line size in Console fixes bug 1230166
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/client/Console.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jake2/client/Console.java b/src/jake2/client/Console.java
index f9ed726..9ceb7fd 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.6 2004-10-28 23:41:27 cawe Exp $
+ * $Id: Console.java,v 1.7 2005-06-30 08:36:22 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -173,6 +173,7 @@ public final class Console extends Globals {
public static void CheckResize() {
int width = (Globals.viddef.width >> 3) - 2;
+ if (width > Defines.MAXCMDLINE) width = Defines.MAXCMDLINE;
if (width == Globals.con.linewidth)
return;