r25000: Fix some more C++ compatibility warnings.
[metze/samba/wip.git] / source4 / libcli / security / dom_sid.c
index 64e418677a47871deeaabc273b89c37f5b486094..8d6bb797146a3b15b2e1e4a2d203ded5966d77ef 100644 (file)
@@ -278,7 +278,7 @@ char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
        }
 
        maxlen = sid->num_auths * 11 + 25;
-       ret = talloc_size(mem_ctx, maxlen);
+       ret = talloc_array(mem_ctx, char, maxlen);
        if (!ret) return talloc_strdup(mem_ctx, "(SID ERR)");
 
        ia = (sid->id_auth[5]) +