summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-15 22:19:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-15 22:19:05 +0200
commitfd01b27edd5a83306f4ce567e31d43641dd003b8 (patch)
tree3e536ce509797dc890099fff3ef28d96c3f69ea5 /source4/lib
parent038987543043346cdcd8a4b8fe2970cd1350a7a7 (diff)
downloadsamba-fd01b27edd5a83306f4ce567e31d43641dd003b8.tar.gz
samba-fd01b27edd5a83306f4ce567e31d43641dd003b8.tar.bz2
samba-fd01b27edd5a83306f4ce567e31d43641dd003b8.zip
Fix const.
(This used to be commit b74fc23825a54eb101b413ee76b21ee605dfb16c)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/interface.c2
-rw-r--r--source4/lib/registry/patchfile_preg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/interface.c b/source4/lib/registry/interface.c
index 06b002859d..0678af5237 100644
--- a/source4/lib/registry/interface.c
+++ b/source4/lib/registry/interface.c
@@ -284,7 +284,7 @@ _PUBLIC_ WERROR reg_key_flush(struct registry_key *key)
}
_PUBLIC_ WERROR reg_set_sec_desc(struct registry_key *key,
- struct security_descriptor *security)
+ const struct security_descriptor *security)
{
if (key == NULL)
return WERR_INVALID_PARAM;
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index c2bc8d10b3..bb46495c19 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -165,7 +165,7 @@ _PUBLIC_ WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename,
data->fd = STDOUT_FILENO;
}
- memcpy(preg_header.hdr, "PReg", 4);
+ strncpy(preg_header.hdr, "PReg", 4);
SIVAL(&preg_header, 4, 1);
write(data->fd, (uint8_t *)&preg_header,8);