diff --git a/equi/equi-stratum.cpp b/equi/equi-stratum.cpp index 2670fbcb5..ae2e0d967 100644 --- a/equi/equi-stratum.cpp +++ b/equi/equi-stratum.cpp @@ -292,7 +292,7 @@ bool equi_stratum_submit(struct pool_infos *pool, struct work *work) } cbin2hex(solhex, (const char*) work->extra, 1347); - char* solHexRestore = (char*) calloc(128, 1); + char* solHexRestore = (char*) calloc(129, 1); cbin2hex(solHexRestore, (const char*)&work->solution[8], 64); memcpy(&solhex[6+16], solHexRestore, 128);