From 525794927ed57fd18d3e713a5869f8fcde5ae2a9 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 18 Jul 2010 04:25:57 +0000 Subject: SCI: fix regression of r50896, behaviour of kFileIO(readString) is supposed to return the string instead of the size, fixes signature mismatch in hoyle 3 svn-id: r50977 --- engines/sci/engine/kfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index dd9241a375..2cd2c147bd 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -817,7 +817,7 @@ reg_t kFileIOReadString(EngineState *s, int argc, reg_t *argv) { fgets_wrapper(s, buf, size, handle); s->_segMan->memcpy(argv[0], (const byte*)buf, size); delete[] buf; - return argv[1]; + return argv[0]; } reg_t kFileIOWriteString(EngineState *s, int argc, reg_t *argv) { -- cgit v1.2.3