aboutsummaryrefslogtreecommitdiffstats
path: root/src/upload_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upload_file.c')
-rw-r--r--src/upload_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upload_file.c b/src/upload_file.c
index 5f937fb..88de19f 100644
--- a/src/upload_file.c
+++ b/src/upload_file.c
@@ -89,7 +89,7 @@ upload_file(const char *path, const char *description, char **id_ptr)
parsed_json = json_tokener_parse(buf);
json_object_object_get_ex(parsed_json, "id", &json_media_id);
const char *media_id = json_object_get_string(json_media_id);
- *id_ptr = media_id;
+ *id_ptr = (char *)media_id;
free(parsed_json);
return 0;