]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Sat, 23 Feb 2008 09:52:12 +0000 (10:52 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 23 Feb 2008 10:04:13 +0000 (11:04 +0100)
source/utils/smbcontrol.c

index 76036bfdde6c8e5fa88e79f508c9caf7f46236d2..db2eefe1e2259f5b5b86f04babba30b41b5c92ab 100644 (file)
@@ -1035,7 +1035,7 @@ static bool do_winbind_dump_domain_list(struct messaging_context *msg_ctx,
                           print_pid_string_cb);
 
        buf_len = sizeof(myid)+domain_len;
-       buf = SMB_MALLOC(buf_len);
+       buf = SMB_MALLOC_ARRAY(uint8_t, buf_len);
        if (!buf) {
                return false;
        }