summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-06-15 00:01:40 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-06-15 00:01:40 +0000
commita86c83693e805c1d4fbb5b1b6286a28be7f97670 (patch)
tree8645d53268c96093d29977804e5ee085cf0acc7b /src/ui
parentPageSizer: Allow spaces in pages.csv (diff)
downloadinkscape-a86c83693e805c1d4fbb5b1b6286a28be7f97670.tar.gz
inkscape-a86c83693e805c1d4fbb5b1b6286a28be7f97670.zip
PageSizer: Avoid writing terminating NULL to pages.csv
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget/page-sizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp
index e00202d4f..a193f84da 100644
--- a/src/ui/widget/page-sizer.cpp
+++ b/src/ui/widget/page-sizer.cpp
@@ -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."));
}
}