Fix warning in use of talloc_set_name.
authorJeremy Allison <jra@samba.org>
Mon, 20 Apr 2009 11:05:12 +0000 (04:05 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 20 Apr 2009 11:05:12 +0000 (04:05 -0700)
Jeremy.

source3/rpc_server/srv_lsa_hnd.c

index 2490ca3..21b297a 100644 (file)
@@ -337,7 +337,7 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
                *pstatus = NT_STATUS_NO_MEMORY;
                return NULL;
        }
-       talloc_set_name(data, type);
+       talloc_set_name(data, "%s", type);
 
        pol = create_policy_hnd_internal(p, hnd, data);
        if (pol == NULL) {