aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support/host_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/support/host_port.c')
-rw-r--r--src/core/lib/support/host_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/host_port.c b/src/core/lib/support/host_port.c
index f19bdbc835..bbd42c26e0 100644
--- a/src/core/lib/support/host_port.c
+++ b/src/core/lib/support/host_port.c
@@ -98,7 +98,7 @@ int gpr_split_host_port(const char *name, char **host, char **port) {
}
/* Allocate return values. */
- *host = gpr_malloc(host_len + 1);
+ *host = (char *)gpr_malloc(host_len + 1);
memcpy(*host, host_start, host_len);
(*host)[host_len] = '\0';