mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 02:09:49 +08:00
Fixed password decoding
Thanks Jimmy Taker compilation warning.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user