aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2004-10-28 23:50:29 +0000
committerCarsten Weisse <[email protected]>2004-10-28 23:50:29 +0000
commit62ce7036a937a4585049dca4ffd4340a6b33aa01 (patch)
tree6ac69592245f79e9c6a686f810fef7768369f76d
parent7f9191d75629602fcb03f8e24c8d0e0a4833fcb4 (diff)
quick fix for macro expansion bug (should work)
-rw-r--r--src/jake2/game/Cmd.java6
1 files 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);