summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
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, ':');