- 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:
1 parent
5728fc2ec8
commit
bb47026b5f
19 files changed
+813
-309
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user