From 57430f33c280939e5a5c4ae77994dc438cfb8390 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 8 Sep 2022 15:46:06 +0200 Subject: [PATCH] Fix file-archive, curl API --- libs/pbd/file_archive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/file_archive.cc b/libs/pbd/file_archive.cc index 2fa4c6db24..0c880a7780 100644 --- a/libs/pbd/file_archive.cc +++ b/libs/pbd/file_archive.cc @@ -194,7 +194,7 @@ FileArchive::fetch (const std::string & url, const std::string & destdir) const return std::string (); } - curl_easy_setopt (curl, CURLOPT_URL, url); + curl_easy_setopt (curl, CURLOPT_URL, url.c_str ()); curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); CURLcode res = curl_easy_perform (curl); curl_easy_cleanup (curl);