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
master
Giel van Schijndel 2008-03-29 18:16:33 +00:00
parent 95f48377d5
commit e9c167118d
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}