diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index 56646889f..856b040dd 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -168,7 +168,7 @@ namespace { std::string resume = extract(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"))