Skip to content

Commit

Permalink
refactor(gui): use Format in place of snprintf to format a message
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Aug 17, 2022
1 parent 2f23b8f commit 88dc428
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Gui/PackageUpdateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ namespace spades {
auto reqret = curl_easy_perform(curl.get());

if (reqret) {
char buf[256];
snprintf(buf, sizeof(buf), "HTTP request error (%s).", curl_easy_strerror(reqret));
m_parent.ReturnErrorVeneer(buf);
m_parent.ReturnErrorVeneer(
Format("HTTP request error ({0}).", curl_easy_strerror(reqret)));
return;
}

Expand Down

0 comments on commit 88dc428

Please sign in to comment.