- Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf.
This commit is contained in:
parent
5728fc2ec8
commit
bb47026b5f
19 changed files with 813 additions and 309 deletions
|
@ -695,16 +695,6 @@ MISC
|
|||
==============================================================
|
||||
*/
|
||||
|
||||
// vsnprintf is ISO/IEC 9899:1999
|
||||
// abstracting this to make it portable
|
||||
#ifdef _WIN32
|
||||
#define Q_vsnprintf _vsnprintf
|
||||
#define Q_snprintf _snprintf
|
||||
#else
|
||||
#define Q_vsnprintf vsnprintf
|
||||
#define Q_snprintf snprintf
|
||||
#endif
|
||||
|
||||
// centralizing the declarations for cl_cdkey
|
||||
// https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=470
|
||||
extern char cl_cdkey[34];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue