Age | Commit message (Collapse) | Author |
|
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.
|
|
As part of this, add DIR_SEPARATOR_S as a string version of the
DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated
on the C heap rather than the zone heap.
This is a first step towards fixing #371.
|
|
What support exists is for obsolete devices I no longer possess; I've
never been contacted about the port and it's been several years since
I even bothered to build a new version. All the extra overrides are
clutter that can just be removed.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2615
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1737
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1718
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1579
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1559
|
|
level.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1204
|
|
sizeof(*array)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 922
|
|
Allow multiple directories to be specified in DOOMWADDIR, in the same
way as PATH.
Make -iwad search through all search paths for the specified IWAD.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 799
|
|
pre-C99 versions of Solaris only have inttypes.h.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 796
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 759
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 704
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 19
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 8
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 4
|