Do not include the closing doublequote in .reg files.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Mon, 30 Aug 2010 10:21:29 +0000 (12:21 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 3 Oct 2010 13:31:37 +0000 (15:31 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/registry/patchfile_dotreg.c

index e0b04da90805b252cc87c0afd1478e3fae3dcc35..3613dcd915fada8f16ca43a21e342e9d587f07ef 100644 (file)
@@ -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, ':');