summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbind_nss_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c
index b59c0021c2..c11c18759e 100644
--- a/source3/nsswitch/winbind_nss_linux.c
+++ b/source3/nsswitch/winbind_nss_linux.c
@@ -147,7 +147,7 @@ static bool next_token_alloc(const char **ptr,
}
/* We started with len = 1 so we have space for the nul. */
- *pp_buff = malloc(len);
+ *pp_buff = (char *)malloc(len);
if (!*pp_buff) {
return false;
}