diff options
author | Michael Adam <obnox@samba.org> | 2008-01-21 15:31:57 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-21 22:49:45 +0100 |
commit | c5c38d622754c5b06716cbae41a27af711d22bcf (patch) | |
tree | 5fce7bd1c5c02ba0b3f54922b6d34ad403497eda /source3/libnet | |
parent | 7f2e253efbf5ce9a7195efcd5fee778b219faebb (diff) | |
download | samba-c5c38d622754c5b06716cbae41a27af711d22bcf.tar.gz samba-c5c38d622754c5b06716cbae41a27af711d22bcf.tar.xz samba-c5c38d622754c5b06716cbae41a27af711d22bcf.zip |
Fix formatting of multi_sz registry values.
Don't print only the last component.
Michael
(This used to be commit 654e96208ec847e32797cbd2442ef9e73c014567)
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_conf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c index ec05fa7c165..fc797bbeb9b 100644 --- a/source3/libnet/libnet_conf.c +++ b/source3/libnet/libnet_conf.c @@ -320,8 +320,12 @@ static char *libnet_conf_format_registry_value(TALLOC_CTX *mem_ctx, case REG_MULTI_SZ: { uint32 j; for (j = 0; j < value->v.multi_sz.num_strings; j++) { - result = talloc_asprintf(mem_ctx, "\"%s\" ", + result = talloc_asprintf(mem_ctx, "%s \"%s\" ", + result, value->v.multi_sz.strings[j]); + if (result == NULL) { + break; + } } break; } |