r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
[samba.git] / source / nsswitch / winbindd_cache.c
index 78b49d01eac160f3d1cd9c306c7dddf2b2ed9134..9164a135c5bab351dd8b819c351c80ed3f777a06 100644 (file)
@@ -564,7 +564,7 @@ struct cache_entry *centry_start(struct winbindd_domain *domain, NTSTATUS status
        centry = SMB_XMALLOC_P(struct cache_entry);
 
        centry->len = 8192; /* reasonable default */
-       centry->data = SMB_XMALLOC_ARRAY(char, centry->len);
+       centry->data = SMB_XMALLOC_ARRAY(uint8, centry->len);
        centry->ofs = 0;
        centry->sequence_number = domain->sequence_number;
        centry_put_uint32(centry, NT_STATUS_V(status));