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:
parent
deebc934ed
commit
bc2098c459
@ -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, ':');
|
||||
|
Loading…
x
Reference in New Issue
Block a user