Commit a86c8369 authored by Patrick Storz's avatar Patrick Storz 🦄

PageSizer: Avoid writing terminating NULL to pages.csv

parent eb54c2e5
Pipeline #66340128 passed with stages
in 6 minutes and 50 seconds
......@@ -108,7 +108,7 @@ PageSizer::PageSizer(Registry & _wr)
char *path = Inkscape::IO::Resource::profile_path("pages.csv");
if (!g_file_test(path, G_FILE_TEST_EXISTS)) {
if (!g_file_set_contents(path, pages_skeleton, sizeof(pages_skeleton) , nullptr)) {
if (!g_file_set_contents(path, pages_skeleton, -1, nullptr)) {
g_warning("%s", _("Failed to create the page file."));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment