diff options
author | Holger Zickner <[email protected]> | 2004-08-27 21:57:48 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-08-27 21:57:48 +0000 |
commit | 3e51f118a9c4d16cc56d69cff6fe3b7e29fe15b1 (patch) | |
tree | 21956e6295bf33ccaf28192cf5a8f3da7957fcb0 /src | |
parent | e2ed5030c0b03bee29a7f413c1581732333397b8 (diff) |
strncpy(dest, src, size) !!!
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/game/GameTargetAdapters.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/game/GameTargetAdapters.java b/src/jake2/game/GameTargetAdapters.java index 31c85a9..e02975f 100644 --- a/src/jake2/game/GameTargetAdapters.java +++ b/src/jake2/game/GameTargetAdapters.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 26.02.2004 by RST. -// $Id: GameTargetAdapters.java,v 1.1 2004-07-08 15:58:43 hzi Exp $ +// $Id: GameTargetAdapters.java,v 1.2 2004-08-27 21:57:48 hzi Exp $ package jake2.game; @@ -91,10 +91,10 @@ public class GameTargetAdapters { if ((ent.spawnflags & 1) != 0) //strncpy(game.helpmessage1, ent.message, sizeof(game.helpmessage2) - 1); - ent.message = GameBase.game.helpmessage1; + GameBase.game.helpmessage1 = ent.message; else //strncpy(game.helpmessage2, ent.message, sizeof(game.helpmessage1) - 1); - ent.message = GameBase.game.helpmessage2; + GameBase.game.helpmessage2 = ent.message; GameBase.game.helpchanged++; } |