heap: fix an implicit cast warning.
Michael
This commit is contained in:
1 parent
ab9e8a59e2
commit
8f50875740
1 file changed
+1
-1
+1
-1
@@ -87,7 +87,7 @@ debugging_strdup (const char *s, const char *file, unsigned long line)
|
||||
assert (s != NULL);
|
||||
|
||||
len = strlen (s) + 1;
|
||||
ptr = malloc (len);
|
||||
ptr = (char *)malloc (len);
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
memcpy (ptr, s, len);
|
||||
|
||||
Reference in new issue
Block a user