summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-08-30 12:21:29 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 15:31:37 +0200
commitbc2098c45920087c49770892db1e50c76d71d8a4 (patch)
tree78be34978023e04e553400b5af246ceb6305d498 /source4
parentdeebc934edb9a0a70e7615b1161d7a60fcb1d78f (diff)
downloadsamba-bc2098c45920087c49770892db1e50c76d71d8a4.tar.gz
samba-bc2098c45920087c49770892db1e50c76d71d8a4.tar.bz2
samba-bc2098c45920087c49770892db1e50c76d71d8a4.zip
Do not include the closing doublequote in .reg files.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/patchfile_dotreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/patchfile_dotreg.c b/source4/lib/registry/patchfile_dotreg.c
index e0b04da908..3613dcd915 100644
--- a/source4/lib/registry/patchfile_dotreg.c
+++ b/source4/lib/registry/patchfile_dotreg.c
@@ -291,7 +291,7 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd,
/* Do not look for colons in strings */
if (p[0] == '"') {
q = NULL;
- data_str = talloc_strdup(mem_ctx, p);
+ data_str = talloc_strndup(mem_ctx, p+1,strlen(p)-2);
} else {
/* Split the value type from the data */
q = strchr_m(p, ':');