From 080b590261a41ae487446675bfbf545fd4801728 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 2 Jun 2011 10:49:09 +0200 Subject: MADE: Remove all instances of s(n)printf --- engines/made/database.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/made/database.cpp') diff --git a/engines/made/database.cpp b/engines/made/database.cpp index 6e5a3228f3..1151339d49 100644 --- a/engines/made/database.cpp +++ b/engines/made/database.cpp @@ -106,7 +106,7 @@ void Object::setVectorItem(int16 index, int16 value) { } } -void Object::dump(const char *filename) { +void Object::dump(const Common::String &filename) { /* FILE *o = fopen(filename, "wb"); fwrite(_objData, _objSize, 1, o); @@ -373,9 +373,7 @@ int16 GameDatabase::setObjectProperty(int16 objectIndex, int16 propertyId, int16 void GameDatabase::dumpObject(int16 index) { Object *obj = getObject(index); - char fn[512]; - sprintf(fn, "obj%04X.0", index); - obj->dump(fn); + obj->dump(Common::String::format("obj%04X.0", index)); } -- cgit v1.2.3