return;
t[0] = 0;
+ t_len = 0;
if(!strcasecmp(c, "name"))
t_len = dp_strlcpy(t, cl.scores[i].name, sizeof(t));
#ifdef WIN32
// memccpy() is standard in POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD, C23.
// Microsoft supports it, but apparently complains if we use it.
- #pragma warning(disable : 4996)
+ #undef memccpy
+ #define memccpy _memccpy
#endif
/** Chain-copies a string with truncation and efficiency (compared to strlcat()).
#ifdef WIN32
// memccpy() is standard in POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD, C23.
// Microsoft supports it, but apparently complains if we use it.
- #pragma warning(disable : 4996)
+ #undef memccpy
+ #define memccpy _memccpy
#endif
size_t VM_VarString(prvm_prog_t *prog, int first, char *out, size_t outsize)
{
#include "thread.h"
#include "libcurl.h"
-#ifdef WIN32
- // Microsoft's compiler complains about portable code
- #pragma warning(disable : 4996)
-#endif
sys_t sys;