aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMatthew Hoops2009-10-21 01:01:23 +0000
committerMatthew Hoops2009-10-21 01:01:23 +0000
commit6114381b4c88800d2766692d671b6a71d0f673a9 (patch)
tree55ee8c762f01849c9abab40cfb8b0e78ef6beafc /engines/agi
parent433f7088fb94d2b3192534450650dbab29c5915b (diff)
downloadscummvm-rg350-6114381b4c88800d2766692d671b6a71d0f673a9.tar.gz
scummvm-rg350-6114381b4c88800d2766692d671b6a71d0f673a9.tar.bz2
scummvm-rg350-6114381b4c88800d2766692d671b6a71d0f673a9.zip
Fix a regression in agiSprintf.
svn-id: r45295
Diffstat (limited to 'engines/agi')
-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;
}