All pastes #559336 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-11 18:41 UTC
rendered paste body
Index: src/game/q_shared.c
===================================================================
--- src/game/q_shared.c (Revision 9030)
+++ src/game/q_shared.c (Arbeitskopie)
@@ -4360,7 +4360,7 @@
        int len;
 
 #if defined(_WIN32)
-       len = _vsnprintf(str, size, format, ap);
+       len = vsnprintf_s(str, size, _TRUNCATE, format, ap);
        str[size-1] = '\0';
 #ifdef DEBUG
        if (len == -1)