summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-18 20:58:46 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-18 21:00:50 +0200
commite599d7c2c214f7b38598fd33e7d2779ae495f7d7 (patch)
treef50a858912779b5d966ced4bd2c72e504092796a /crawl-ref/source/package.cc
parent2f6f7b8e78468daf20785fdfd973b53cc094cf3f (diff)
downloadcrawl-ref-e599d7c2c214f7b38598fd33e7d2779ae495f7d7.tar.gz
crawl-ref-e599d7c2c214f7b38598fd33e7d2779ae495f7d7.zip
Fix saves on big-endian systems.
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r--crawl-ref/source/package.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc
index acc4a8fef3..399aace955 100644
--- a/crawl-ref/source/package.cc
+++ b/crawl-ref/source/package.cc
@@ -194,7 +194,7 @@ void package::commit()
head.magic = htole(PACKAGE_MAGIC);
head.version = PACKAGE_VERSION;
memset(&head.padding, 0, sizeof(head.padding));
- head.start = write_directory();
+ head.start = htole(write_directory());
#ifdef DO_FSYNC
// We need a barrier before updating the link to point at the new directory.
if (fdatasync(fd))