The branch, v3-3-test has been updated
       via  af1878009e0bb7ef43bf445f5c167f3bbcc43fd2 (commit)
      from  5db15bc0f67b478ef95ec3e327f7a40d90c535bd (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit af1878009e0bb7ef43bf445f5c167f3bbcc43fd2
Author: Günther Deschner <[EMAIL PROTECTED]>
Date:   Fri Sep 26 23:36:07 2008 +0200

    libgpo: fix invalid cast in scripts CSE.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/libgpo/gpext/scripts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libgpo/gpext/scripts.c b/source/libgpo/gpext/scripts.c
index c07407c..02c3aba 100644
--- a/source/libgpo/gpext/scripts.c
+++ b/source/libgpo/gpext/scripts.c
@@ -93,7 +93,7 @@ static NTSTATUS generate_gp_registry_entry(TALLOC_CTX 
*mem_ctx,
        data->type = data_type;
        switch (data->type) {
                case REG_QWORD:
-                       data->v.qword = (uint64_t)data_p;
+                       data->v.qword = *(uint64_t *)data_p;
                        break;
                case REG_SZ:
                        data->v.sz.str = talloc_strdup(mem_ctx, (char *)data_p);


-- 
Samba Shared Repository

Reply via email to