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-861f7616d084master
parent
95f48377d5
commit
e9c167118d
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue