diff options
author | Mateusz Loskot <mateusz@loskot.net> | 2012-05-22 23:51:44 +0100 |
---|---|---|
committer | Mateusz Loskot <mateusz@loskot.net> | 2012-05-22 23:51:44 +0100 |
commit | 271c53ebdd6ca995a6feec6dd67881e15b7a9eb0 (patch) | |
tree | 9ca2b378b10d66acbd931529e4fad2973579c940 /json_object.c | |
parent | a6f39a3c0ce09aec1f947479e7c441f5c2b99f01 (diff) | |
download | json-c-271c53ebdd6ca995a6feec6dd67881e15b7a9eb0.tar.gz |
Missing explicit casts from void* to specific pointers required. Added #define strcasecmp for Visual C++.
Diffstat (limited to 'json_object.c')
-rw-r--r-- | json_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json_object.c b/json_object.c index 8e399de..2258c02 100644 --- a/json_object.c +++ b/json_object.c @@ -538,7 +538,7 @@ struct json_object* json_object_new_string_len(const char *s, int len) if(!jso) return NULL; jso->_delete = &json_object_string_delete; jso->_to_json_string = &json_object_string_to_json_string; - jso->o.c_string.str = malloc(len); + jso->o.c_string.str = (char*)malloc(len); memcpy(jso->o.c_string.str, (void *)s, len); jso->o.c_string.len = len; return jso; |