summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapmark.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 13:44:58 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 13:44:58 +0000
commit3fbed51718d84b7fdc21d44d80b290e1742ed647 (patch)
tree3273868032548b20b88deca29dcbe032f1b6bc9f /crawl-ref/source/mapmark.cc
parent968b72f7e415665bdb896fe3979f8049d69a930f (diff)
downloadcrawl-ref-3fbed51718d84b7fdc21d44d80b290e1742ed647.tar.gz
crawl-ref-3fbed51718d84b7fdc21d44d80b290e1742ed647.zip
Possible fix for 2018522.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6559 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapmark.cc')
-rw-r--r--crawl-ref/source/mapmark.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/mapmark.cc b/crawl-ref/source/mapmark.cc
index 4994b6dc32..5f0942ef2e 100644
--- a/crawl-ref/source/mapmark.cc
+++ b/crawl-ref/source/mapmark.cc
@@ -752,7 +752,11 @@ void map_markers::write(writer &outf) const
// Write the marker data, prefixed by a size
marshallLong(outf, buf.size());
- outf.write(&buf[0], buf.size());
+ for ( std::vector<unsigned char>::const_iterator bi = buf.begin();
+ bi != buf.end(); ++bi )
+ {
+ outf.writeByte(*bi);
+ }
}
}