1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Do not include the closing doublequote in .reg files.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Wilco Baan Hofman 2010-08-30 12:21:29 +02:00 committed by Jelmer Vernooij
parent deebc934ed
commit bc2098c459

View 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, ':');