From 365f7959ed21802038ffba09d1e80515f015d3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nirgal=20Vourg=C3=A8re?= Date: Thu, 27 Jun 2013 23:46:46 +0200 Subject: [PATCH] Fixed password decoding Thanks Jimmy Taker compilation warning. --- src/libmdb/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmdb/file.c b/src/libmdb/file.c index 4c5eefb..f670be5 100644 --- a/src/libmdb/file.c +++ b/src/libmdb/file.c @@ -260,7 +260,7 @@ MdbHandle *mdb_open(const char *filename, MdbFileFlags flags) /* get the db password located at 0x42 bytes into the file */ for (pos=0;pos<14;pos++) { - j = mdb_get_int32(mdb,0x42+pos); + j = mdb_get_int32(mdb->pg_buf, 0x42+pos); j ^= key[pos]; if ( j != 0) mdb->f->db_passwd[pos] = j;