mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +00:00
Fix send() for JSON strings
This commit is contained in:
parent
3cad815e0f
commit
0eb5d5ecae
@ -214,7 +214,7 @@ int callapi(char *command, char *host, short int port)
|
||||
return 1;
|
||||
}
|
||||
|
||||
n = send(sock, command, strlen(command)+1, 0);
|
||||
n = send(sock, command, strlen(command), 0);
|
||||
if (SOCKETFAIL(n)) {
|
||||
printf("Send failed: %s\n", SOCKERRMSG);
|
||||
ret = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user