From 62ce7036a937a4585049dca4ffd4340a6b33aa01 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 28 Oct 2004 23:50:29 +0000 Subject: quick fix for macro expansion bug (should work) --- src/jake2/game/Cmd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jake2/game/Cmd.java b/src/jake2/game/Cmd.java index 538e9bc..2d9bc86 100644 --- a/src/jake2/game/Cmd.java +++ b/src/jake2/game/Cmd.java @@ -2,7 +2,7 @@ * Cmd.java * Copyright (C) 2003 * - * $Id: Cmd.java,v 1.6 2004-09-22 19:22:02 salomo Exp $ + * $Id: Cmd.java,v 1.7 2004-10-28 23:50:29 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -215,11 +215,11 @@ public final class Cmd { System.arraycopy(scan, 0, temporary, 0, i); //strcpy(temporary + i, token); - System.arraycopy(token, 0, temporary, i, token.length()); + System.arraycopy(token.toCharArray(), 0, temporary, i, token.length()); //strcpy(temporary + i + j, start); System.arraycopy(ph.data, ph.index, temporary, i + j, len - - ph.index); + - ph.index - 1); //strcpy(expanded, temporary); System.arraycopy(temporary, 0, expanded, 0, 0); -- cgit v1.2.3