summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-28 15:30:21 +0200
committerVolker Lendecke <vl@samba.org>2010-10-28 15:50:14 +0200
commit8b87603de4f40c341d23262b4ffe357248ac4ff3 (patch)
tree48b7f94e50e51aa7073a30286f91be1a51b50874 /source3
parenta43261e11d92360ef4060cd3559aeab9ebac95fd (diff)
downloadsamba-8b87603de4f40c341d23262b4ffe357248ac4ff3.tar.gz
samba-8b87603de4f40c341d23262b4ffe357248ac4ff3.tar.bz2
samba-8b87603de4f40c341d23262b4ffe357248ac4ff3.zip
s3: Fix the registry upgrade code
The strings have the 0-terminator as part of the keys. The rest of the registry code would not cope well without.
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 43fe374505..489a69ee66 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -420,7 +420,7 @@ static int regdb_normalize_keynames_fn(struct db_record *rec,
new_rec.value.dptr = rec->value.dptr;
new_rec.value.dsize = rec->value.dsize;
new_rec.key.dptr = (unsigned char *) keyname;
- new_rec.key.dsize = strlen(keyname);
+ new_rec.key.dsize = strlen(keyname)+1;
new_rec.private_data = rec->private_data;
/* Delete the original record and store the normalized key */