From: Wilco Baan Hofman Date: Mon, 30 Aug 2010 10:21:29 +0000 (+0200) Subject: Do not include the closing doublequote in .reg files. X-Git-Tag: samba-4.0.0alpha14~2397 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=bc2098c45920087c49770892db1e50c76d71d8a4 Do not include the closing doublequote in .reg files. Signed-off-by: Jelmer Vernooij --- diff --git a/source4/lib/registry/patchfile_dotreg.c b/source4/lib/registry/patchfile_dotreg.c index e0b04da9080..3613dcd915f 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, ':');