aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2014-12-17 18:25:24 +0100
committerStrangerke2014-12-17 18:25:24 +0100
commit82dfe2a5bcac49e2abbec98f09693810839e422e (patch)
tree6e8d54e9136c7e4342e091bdedca2401aa56419a /engines/access
parent1496ad9717f499a73ce96cf318c6bf8070f02915 (diff)
downloadscummvm-rg350-82dfe2a5bcac49e2abbec98f09693810839e422e.tar.gz
scummvm-rg350-82dfe2a5bcac49e2abbec98f09693810839e422e.tar.bz2
scummvm-rg350-82dfe2a5bcac49e2abbec98f09693810839e422e.zip
ACCESS: Use writeString in writeSavegameHeader
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/access.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp
index c0f8905681..cc443131b7 100644
--- a/engines/access/access.cpp
+++ b/engines/access/access.cpp
@@ -8,12 +8,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -540,7 +540,7 @@ void AccessEngine::writeSavegameHeader(Common::OutSaveFile *out, AccessSavegameH
out->writeByte(ACCESS_SAVEGAME_VERSION);
// Write savegame name
- out->write(header._saveName.c_str(), header._saveName.size());
+ out->writeString(header._saveName);
out->writeByte('\0');
// Write a thumbnail of the screen