summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcrypt.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbcrypt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp
index 7aa8a0c046..00cab246e8 100644
--- a/plugins/Db3x_mmap/src/dbcrypt.cpp
+++ b/plugins/Db3x_mmap/src/dbcrypt.cpp
@@ -184,8 +184,7 @@ LBL_SetNewKey:
EnumModuleNames(sttModuleEnum, this);
// upgrade signature
- memcpy(&m_dbHeader.signature, &dbSignatureU, sizeof(dbSignatureU));
- DBWrite(0, &dbSignatureU, sizeof(dbSignatureU));
+ WriteSignature(dbSignatureU);
}
if (m_dbHeader.version == DB_OLD_VERSION) {