summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2009-05-08 02:01:53 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2009-05-08 02:01:53 +0000
commita290782e2463f17e2d90c9d2e2a03d53e80d54ae (patch)
tree3738a2a9a3d0de9e64dd9712e66be6d102a708f7 /media-gfx/inkscape/files
parentFix GCC 4.4 compatibility, bug 268086. Thanks to Andreas Sturmlechner <andrea... (diff)
downloadgentoo-2-a290782e2463f17e2d90c9d2e2a03d53e80d54ae.tar.gz
gentoo-2-a290782e2463f17e2d90c9d2e2a03d53e80d54ae.tar.bz2
gentoo-2-a290782e2463f17e2d90c9d2e2a03d53e80d54ae.zip
Fix runtime crash with gcc-4.4, bug 268992. Thanks to Daniel J. <sleeperseven@hotmail.com> for the patch.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/inkscape/files')
-rw-r--r--media-gfx/inkscape/files/inkscape-0.46-gcc44_p2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/media-gfx/inkscape/files/inkscape-0.46-gcc44_p2.patch b/media-gfx/inkscape/files/inkscape-0.46-gcc44_p2.patch
new file mode 100644
index 000000000000..0d2fcd4619cb
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.46-gcc44_p2.patch
@@ -0,0 +1,29 @@
+One more typing fix for GCC 4.4, and fix a NULL dereference on startup.
+
+Lubomir Rintel <lkundrak@v3.sk>
+
+diff -up inkscape/src/extension/internal/bitmap/imagemagick.cpp.gcc44 inkscape/src/extension/internal/bitmap/imagemagick.cpp
+--- inkscape/src/extension/internal/bitmap/imagemagick.cpp.gcc44 2009-01-28 22:12:57.000000000 +0100
++++ inkscape/src/extension/internal/bitmap/imagemagick.cpp 2009-03-02 17:05:57.000000000 +0100
+@@ -114,7 +114,7 @@ ImageMagickDocCache::readImage(const cha
+ char *search = (char *) g_strndup(xlink, 30);
+ if (strstr(search, "base64") != (char*)NULL) {
+ // 7 = strlen("base64") + strlen(",")
+- char* pureBase64 = strstr(xlink, "base64") + 7;
++ const char* pureBase64 = strstr(xlink, "base64") + 7;
+ Magick::Blob blob;
+ blob.base64(pureBase64);
+ image->read(blob);
+diff -up inkscape/src/libnr/nr-object.cpp.gcc44 inkscape/src/libnr/nr-object.cpp
+--- inkscape/src/libnr/nr-object.cpp.gcc44 2009-03-02 17:06:46.000000000 +0100
++++ inkscape/src/libnr/nr-object.cpp 2009-03-02 17:06:58.000000000 +0100
+@@ -198,8 +198,8 @@ NRObject *NRObject::alloc(NRType type)
+ );
+ memset(object, 0xf0, c->isize);
+
+- object->klass = c;
+ c->cpp_ctor(object);
++ object->klass = c;
+ nr_class_tree_object_invoke_init (c, object);
+
+ return object;