mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
[spotify] Use string_printf instead of asprintf
This commit is contained in:
@@ -244,9 +244,9 @@ spotifywebapi_request_next(struct spotify_request *request, const char *uri, boo
|
||||
if (append_market && spotify_user_country)
|
||||
{
|
||||
if (strchr(uri, '?'))
|
||||
asprintf(&next_uri, "%s&market=%s", uri, spotify_user_country);
|
||||
next_uri = string_printf("%s&market=%s", uri, spotify_user_country);
|
||||
else
|
||||
asprintf(&next_uri, "%s?market=%s", uri, spotify_user_country);
|
||||
next_uri = string_printf("%s?market=%s", uri, spotify_user_country);
|
||||
}
|
||||
else
|
||||
next_uri = strdup(uri);
|
||||
|
||||
Reference in New Issue
Block a user