mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-31 00:44:19 +00:00
api: proper type casting for MSVS support.
Closes https://github.com/veox/sgminer/issues/113
This commit is contained in:
parent
44aed3570e
commit
ae23d25086
2
api.c
2
api.c
@ -3942,7 +3942,7 @@ void api(int api_thr_id)
|
|||||||
if (strchr(cmd, CMDJOIN)) {
|
if (strchr(cmd, CMDJOIN)) {
|
||||||
firstjoin = isjoin = true;
|
firstjoin = isjoin = true;
|
||||||
// cmd + leading '|' + '\0'
|
// cmd + leading '|' + '\0'
|
||||||
cmdsbuf = malloc(strlen(cmd) + 2);
|
cmdsbuf = (char *)malloc(strlen(cmd) + 2);
|
||||||
if (!cmdsbuf)
|
if (!cmdsbuf)
|
||||||
quithere(1, "OOM cmdsbuf");
|
quithere(1, "OOM cmdsbuf");
|
||||||
strcpy(cmdsbuf, "|");
|
strcpy(cmdsbuf, "|");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user