fixed bug in python binding loading resume data
This commit is contained in:
parent
70e6a6efaf
commit
272dcb6652
|
@ -168,7 +168,7 @@ namespace
|
|||
{
|
||||
std::string resume = extract<std::string>(params["resume_data"]);
|
||||
rd.resize(resume.size());
|
||||
std::memcpy(&rd[0], &rd[0], rd.size());
|
||||
std::memcpy(&rd[0], &resume[0], rd.size());
|
||||
p.resume_data = &rd;
|
||||
}
|
||||
if (params.has_key("storage_mode"))
|
||||
|
|
Loading…
Reference in New Issue