From e9c167118d3cc8f2bd10697769f8a4063c5b7aa6 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sat, 29 Mar 2008 18:16:33 +0000 Subject: [PATCH] Fix beacon code for real (r4408 used sizeof for the source variable, while it should be the destiniation) git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4413 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/multiplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multiplay.c b/src/multiplay.c index 8081bcf5c..cc6accd92 100644 --- a/src/multiplay.c +++ b/src/multiplay.c @@ -1906,7 +1906,7 @@ static BOOL recvBeacon() debug(LOG_WZ, "Received beacon for player: %d, from: %d",receiver, sender); strlcat(msg, NetPlay.players[sender].name, sizeof(msg)); // name - strlcpy(beaconReceiveMsg[sender], msg, sizeof(msg)); + strlcpy(beaconReceiveMsg[sender], msg, sizeof(beaconReceiveMsg[player])); return addHelpBlip(locX, locY, receiver, sender, beaconReceiveMsg[sender]); }