fixed bug in python binding loading resume data

This commit is contained in:
Arvid Norberg 2011-07-04 07:07:34 +00:00
parent 70e6a6efaf
commit 272dcb6652
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ namespace
{ {
std::string resume = extract<std::string>(params["resume_data"]); std::string resume = extract<std::string>(params["resume_data"]);
rd.resize(resume.size()); rd.resize(resume.size());
std::memcpy(&rd[0], &rd[0], rd.size()); std::memcpy(&rd[0], &resume[0], rd.size());
p.resume_data = &rd; p.resume_data = &rd;
} }
if (params.has_key("storage_mode")) if (params.has_key("storage_mode"))