aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kstring.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 8e75675a66..0d80618bfd 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -359,7 +359,8 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) {
reg_t kFormat(EngineState *s, int argc, reg_t *argv) {
uint16 *arguments;
reg_t dest = argv[0];
- char targetbuf[512];
+ int maxsize = 4096; /* Arbitrary... */
+ char targetbuf[4096];
char *target = targetbuf;
reg_t position = argv[1]; /* source */
int index = argv[2].toUint16();
@@ -371,8 +372,6 @@ reg_t kFormat(EngineState *s, int argc, reg_t *argv) {
int startarg;
int str_leng = 0; /* Used for stuff like "%13s" */
int unsigned_var = 0;
- int maxsize = 4096; /* Arbitrary... */
-
if (position.segment)
startarg = 2;