aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post.c b/src/post.c
index 9e9273d..7994493 100644
--- a/src/post.c
+++ b/src/post.c
@@ -45,12 +45,12 @@ post_status(const char *status, const char *scope, const char *media_id)
char *api_url = "/api/v1/statuses";
char *url = NULL;
- asprintf(&url, "%s%s", instance, api_url);
+ dm_asprintf(&url, "%s%s", instance, api_url);
char *header_fmt = "Authorization: Bearer %s";
char *authorization_header = NULL;
struct curl_slist *header_list = NULL;
- asprintf(&authorization_header, header_fmt, access_token);
+ dm_asprintf(&authorization_header, header_fmt, access_token);
header_list = curl_slist_append(header_list, authorization_header);
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, header_list);