aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 32c12e9e78..87807105e3 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -602,7 +602,7 @@ char *AgiEngine::agiSprintf(const char *s) {
}
}
- assert(sizeof(agiSprintf_buf) < p.size());
+ assert(p.size() < sizeof(agiSprintf_buf));
strcpy(agiSprintf_buf, p.c_str());
return agiSprintf_buf;
}