Commit 4a9c5f79 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Correctly cast the result of malloc.

parent 7dc406fb
...@@ -9677,7 +9677,7 @@ void dynstr_append_sorted(DYNAMIC_STRING* ds, DYNAMIC_STRING *ds_input) ...@@ -9677,7 +9677,7 @@ void dynstr_append_sorted(DYNAMIC_STRING* ds, DYNAMIC_STRING *ds_input)
static int setenv(const char *name, const char *value, int overwrite) static int setenv(const char *name, const char *value, int overwrite)
{ {
size_t buflen= strlen(name) + strlen(value) + 2; size_t buflen= strlen(name) + strlen(value) + 2;
char *envvar= malloc(buflen); char *envvar= (char *)malloc(buflen);
if(!envvar) if(!envvar)
return ENOMEM; return ENOMEM;
strcpy(envvar, name); strcpy(envvar, name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment