This commit is contained in:
jl777
2019-01-29 04:56:44 -11:00
parent 3c43c027a8
commit e2028c9616

View File

@@ -658,7 +658,7 @@ UniValue sudoku_solution(uint64_t txfee,struct CCcontract_info *cp,cJSON *params
jsonstr[strlen(jsonstr)-1] = 0;
jsonstr++;
}
newstr = malloc(strlen(jsonstr)+1);
newstr = (char *)malloc(strlen(jsonstr)+1);
for (i=j=0; jsonstr[i]!=0; i++)
{
if ( jsonstr[i] == '%' && jsonstr[i+1] == '2' && jsonstr[i+2] == '2' )