aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-03 16:07:33 +0000
committerStephen Kennedy2008-07-03 16:07:33 +0000
commit903a80ece353ade7aaf7c20b8cf5cfa3f59c04bb (patch)
tree4def1e780a7064c0c3ca059407447cbfcf142e63
parentd01594594eed8e1271fa1fe4c23335abb9498a66 (diff)
downloadscummvm-rg350-903a80ece353ade7aaf7c20b8cf5cfa3f59c04bb.tar.gz
scummvm-rg350-903a80ece353ade7aaf7c20b8cf5cfa3f59c04bb.tar.bz2
scummvm-rg350-903a80ece353ade7aaf7c20b8cf5cfa3f59c04bb.zip
changed loadBuffer to use byte* rather than char*
svn-id: r32893
-rw-r--r--common/xmlparser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h
index 4850dc5113..e458daaeba 100644
--- a/common/xmlparser.h
+++ b/common/xmlparser.h
@@ -148,8 +148,8 @@ public:
* i.e. if it can be freed safely after it's
* no longer needed by the parser.
*/
- virtual bool loadBuffer(const char *buffer, bool disposable = false) {
- _text.loadStream(new MemoryReadStream((const byte*)buffer, strlen(buffer), disposable));
+ virtual bool loadBuffer(const byte *buffer, uint32 size, bool disposable = false) {
+ _text.loadStream(new MemoryReadStream(buffer, size, disposable));
_fileName = "Memory Stream";
return true;
}