summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-08-15 20:55:21 +0000
committertavmjong-free <tavmjong@free.fr>2016-08-15 20:55:21 +0000
commit7f779f28e67eac1653e0f7751bb3f224b67894c7 (patch)
treeed872536d8fe377caf2ba22181f8dbfc6a82cf35 /src/inkscape.cpp
parentFix bug reported in http://www.viva64.com/en/b/0419/ (diff)
downloadinkscape-7f779f28e67eac1653e0f7751bb3f224b67894c7.tar.gz
inkscape-7f779f28e67eac1653e0f7751bb3f224b67894c7.zip
Fix a bunch of errors as reported at http://www.viva64.com/en/b/0419/
(bzr r15059)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 48b921752..6f8ea4324 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -656,6 +656,7 @@ Application::crash_handler (int /*signum*/)
repr = doc->getReprRoot();
if (doc->isModifiedSinceSave()) {
const gchar *docname;
+ char n[64];
/* originally, the document name was retrieved from
* the sodipod:docname attribute */
@@ -671,7 +672,6 @@ Application::crash_handler (int /*signum*/)
if (*d=='.') dots++;
}
if (*d=='.' && d>docname && dots==2) {
- char n[64];
size_t len = MIN (d - docname, 63);
memcpy (n, docname, len);
n[len] = '\0';