Fix a type-punned warning
authorVolker Lendecke <vl@samba.org>
Thu, 23 Apr 2009 12:14:37 +0000 (14:14 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 23 Apr 2009 12:35:50 +0000 (14:35 +0200)
source3/lib/util_reg_api.c

index 9313193f10e3c75ca2f52df52017286e30bb472f..56ecc5472d493a508c7d72598dd8fa4e147fecba 100644 (file)
@@ -92,7 +92,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
                }
 
                if (!convert_string_talloc(value, CH_UTF16LE, CH_UNIX, tmp,
-                                          length+2, (void **)&value->v.sz.str,
+                                          length+2, (void *)&value->v.sz.str,
                                           &value->v.sz.len, False)) {
                        SAFE_FREE(tmp);
                        err = WERR_INVALID_PARAM;