diff options
Diffstat (limited to 'tests/sauer/command.cpp')
-rw-r--r-- | tests/sauer/command.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/sauer/command.cpp b/tests/sauer/command.cpp index 8444052e..1037032f 100644 --- a/tests/sauer/command.cpp +++ b/tests/sauer/command.cpp @@ -1,6 +1,8 @@ // command.cpp: implements the parsing and execution of a tiny script language which // is largely backwards compatible with the quake console language. +// XXX Emscripten: changed all sizeof to ES_SIZEOF + // XXX Emscripten #define STANDALONE @@ -1312,7 +1314,7 @@ void conline(int type, const char *sf) // add a line to the console buffe void conoutfv(int type, const char *fmt, va_list args) { static char buf[CONSTRLEN]; - vformatstring(buf, fmt, args, sizeof(buf)); + vformatstring(buf, fmt, args, ES_SIZEOF(char)*CONSTRLEN); // XXX Emscripten conline(type, buf); //filtertext(buf, buf); // XXX Emscripten puts(buf); |