From c18686804b72a807536bba291e796b6ac1d7acce Mon Sep 17 00:00:00 2001 From: "git@daemon.de" Date: Tue, 28 Jan 2014 12:21:03 +0100 Subject: [PATCH] fixed malloc() cast --- include/pcp/plist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pcp/plist.h b/include/pcp/plist.h index 1298871..92aebee 100644 --- a/include/pcp/plist.h +++ b/include/pcp/plist.h @@ -43,7 +43,7 @@ static inline void p_add(plist_t **lst, char *value) { plist_t *iter = *lst; newitem = (plist_t *)malloc(sizeof(plist_t)); - newitem->value = malloc(strlen(value) + 1); + newitem->value = (char *)malloc(strlen(value) + 1); strncpy(newitem->value, value, strlen(value) + 1); newitem->next = NULL;