Age | Commit message (Collapse) | Author |
|
strdup() can theoretically fail and return NULL. This could lead to
a crash or undesirable behavior. Add M_StringDuplicate() which does
the same thing but exits with an error if a string cannot be
allocated.
This fixes #456. Thanks to Quasar for the suggestion.
|
|
This change rewrites and simplifies the copyright headers at the top
of all source files:
* Remove "Emacs style mode select" line; this line was included in
the headers for the originally released source files and appears
to be to set the file type for old versions of Emacs. I'm not sure
entirely why it was required but I don't think it is any more.
* Remove "You should have received a copy of..." text from copyright
header. This refers to the old 59 Temple Place address where the
FSF headquarters used to be located and is no longer correct.
Rather than change to the new address, just remove the paragraph
as it is superfluous anyway. This fixes #311.
* Remove ---- separator lines so that the file headers are barer
and more simplified.
|
|
Clients receive the WAD and dehacked checksums of the controlling
player and are supposed to display a warning at the startup screen if
they do not match. However, reversed logic in the code that sends the
waiting data to clients meant that they were always sent their own
checksums, so the error message was never displayed.
This fixes #384.
|
|
The Windows API has an _snprintf function that is not the same as
Unix's snprintf(): if the string is truncated then no trailing NUL
character is appended. This makes the function unsafe. Define a
replacement/wrapper called M_snprintf that works the same but always
appends a trailing NUL, for safety on Windows and other OSes that
behave like this.
Do the same thing for vsnprintf(), and update HACKING to list
snprintf/vsnprintf as forbidden functions. This fixes #375;
thanks to Quasar for pointing out the different behavior of these
functions.
|
|
Remove some remaining uses of strncpy() and use M_StringCopy() instead.
|
|
message (thanks Alexandre Xavier).
Subversion-branch: /branches/v2-branch
Subversion-revision: 2693
|
|
startup if a player disconnects, or continue gracefully if a drone
disconnects.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2588
|
|
players that are ready for startup progress screens.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2581
|
|
stage in refactoring the way that network startup works.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2580
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2537
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2530
|
|
to changes in DNS configuration.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2486
|
|
its player limit to match. Update GUI code to adjust waiting screen list
size appropriately.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2442
|
|
defines for each game. Refactor "waiting screen" data code.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2441
|
|
checksums, plus the is_freedoom flag.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2434
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2423
|
|
allow the server to advance too far ahead of the client.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2420
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2347
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2330
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2258
|
|
also checks that extra options were provided on the command line (thanks
Sander van Dijk).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2223
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2214
|
|
several days ago.
Subversion-branch: /branches/raven-branch
Subversion-revision: 2212
|
|
the clients[] array.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2201
|
|
in response to queries (thanks AlexMax).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2185
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2181
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2163
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1737
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1699
|
|
with various netgame constants.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1218
|
|
level.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1204
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1087
|
|
be disabled.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1086
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 956
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 954
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 870
|
|
server-side broadcast messages. This avoids the possibility of malicious
servers that might not send the message.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 755
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 704
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 699
|
|
players are mixing Freedoom/Original IWADs.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 698
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 694
|
|
on the waiting screen if the checksums differ from the other players.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 689
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 688
|
|
for each other to send data.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 685
|
|
Fix check on number of players on connect.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 682
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 680
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 641
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 612
|
|
command line option to do so.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 464
|
|
in SYN packets to allow the fields that follow to be changed later on
if necessary.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 461
|