Skip to content

Commit

Permalink
fixups 6
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Apr 24, 2024
1 parent 67e4eab commit 5829948
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/libtest/lib677.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int test(char *URL)

if(!state) {
CURLcode ec;
ec = curl_easy_send(curl, cmd + pos, (size_t)(sizeof(cmd) - 1 - pos),
ec = curl_easy_send(curl, cmd + pos, sizeof(cmd) - 1 - (size_t)pos,
&len);
if(ec != CURLE_OK) {
fprintf(stderr, "curl_easy_send() failed, with code %d (%s)\n",
Expand All @@ -101,8 +101,7 @@ int test(char *URL)
}
else if(pos < (ssize_t)sizeof(buf)) {
CURLcode ec;
ec = curl_easy_recv(curl, buf + pos, (size_t)(sizeof(buf) - pos),
&len);
ec = curl_easy_recv(curl, buf + pos, sizeof(buf) - (size_t)pos, &len);
if(ec != CURLE_OK) {
fprintf(stderr, "curl_easy_recv() failed, with code %d (%s)\n",
(int)ec, curl_easy_strerror(ec));
Expand Down

0 comments on commit 5829948

Please sign in to comment.