1
0
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:
Noel Maersk 2014-02-24 13:54:06 +02:00
parent 44aed3570e
commit ae23d25086

2
api.c
View File

@ -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, "|");