Skip to content

Commit

Permalink
refactor(gui): let SPRaise format message instead of using snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Aug 11, 2022
1 parent add7c5c commit 2f23b8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Gui/MainScreenHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ namespace spades {
if (CURLE_OK == reqret) {
ProcessResponse();
} else {
char buf[256];
snprintf(buf, sizeof(buf), "HTTP request error (%s).", curl_easy_strerror(reqret));
SPRaise(buf);
SPRaise("HTTP request error (%s).", curl_easy_strerror(reqret));
}
} else {
SPRaise("Failed to create cURL object.");
Expand Down

0 comments on commit 2f23b8f

Please sign in to comment.