From f263685e447b43887cd8173ea7d962473a0a3dc6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 27 Mar 2021 22:54:26 +0100 Subject: [PATCH] bug: Fix loading of bookmark name and comment from project file Fixes #211 --- source/helpers/project_file_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/helpers/project_file_handler.cpp b/source/helpers/project_file_handler.cpp index 049962cca..c8ae6aeee 100644 --- a/source/helpers/project_file_handler.cpp +++ b/source/helpers/project_file_handler.cpp @@ -21,7 +21,9 @@ namespace hex { j.at("locked").get_to(b.locked); std::copy(name.begin(), name.end(), std::back_inserter(b.name)); + b.name.push_back('\0'); std::copy(comment.begin(), comment.end(), std::back_inserter(b.comment)); + b.comment.push_back('\0'); }