aboutsummaryrefslogtreecommitdiff
path: root/tests/sauer/command.cpp
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-08 22:55:23 -0700
committeralon@honor <none@none>2010-09-08 22:55:23 -0700
commit7a6e1527b65e32ab8cbe4760932eb40ad3eb2b3b (patch)
treefce711d08f1e0aa50ea0228e5b432c7a148fa4b7 /tests/sauer/command.cpp
parente5fb81cd5e6c88adbcd96df2dc103ae618dbb990 (diff)
sauer test fixes
Diffstat (limited to 'tests/sauer/command.cpp')
-rw-r--r--tests/sauer/command.cpp4
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);