From 6d5a59899cc4544827638dabf3909d00275461ce Mon Sep 17 00:00:00 2001 From: Rene Stoeckel Date: Fri, 16 Dec 2005 21:14:36 +0000 Subject: fix - printf does not like zero length strings --- src/jake2/client/CL.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/jake2/client/CL.java') diff --git a/src/jake2/client/CL.java b/src/jake2/client/CL.java index 3aa7f1c..cd14908 100644 --- a/src/jake2/client/CL.java +++ b/src/jake2/client/CL.java @@ -2,7 +2,7 @@ * CL.java * Copyright (C) 2004 * - * $Id: CL.java,v 1.26 2005-12-06 14:37:43 cawe Exp $ + * $Id: CL.java,v 1.27 2005-12-16 21:14:36 salomo Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -813,7 +813,8 @@ public final class CL { // print command from somewhere if (c.equals("print")) { s = MSG.ReadString(Globals.net_message); - Com.Printf(s); + if (s.length() > 0) + Com.Printf(s); return; } -- cgit v1.2.3