]> git.decadent.org.uk Git - ion3.git/commitdiff
Applied fix for crash when setting window properties in single-byte character encodings.
authorBen Hutchings <ben@decadent.org.uk>
Wed, 27 Jun 2007 23:01:52 +0000 (23:01 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 12:37:56 +0000 (12:37 +0000)
This was posted by Nedko Arnaudov <nedko@users.sourceforge.net> on the ion mailing list.

debian/patches/00list
debian/patches/102_fix-string-list-crash.diff [new file with mode: 0644]

index 24d414451043d3ef11a6a2c8b1e0bbf51c0fc87f..56ccaf0666e60df4504d5f088cee587b1e9ce5ec 100644 (file)
@@ -1,3 +1,4 @@
+102_fix-string-list-crash.diff
 201_fix-paths.diff
 202_fix-menus.diff
 204_fix-bindings.diff
diff --git a/debian/patches/102_fix-string-list-crash.diff b/debian/patches/102_fix-string-list-crash.diff
new file mode 100644 (file)
index 0000000..89e31db
--- /dev/null
@@ -0,0 +1,30 @@
+#! /bin/sh -e
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+    *)
+        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+        exit 1;;
+esac
+
+exit 0
+@DPATCH@
+
+# Patch thanks to Nedko Arnaudov <nedko@users.sourceforge.net>
+
+diff -ru ion-3rc-20070608/ioncore/property.c ion-3rc-20070608.fixed/ioncore/property.c
+--- ion-3rc-20070608/ioncore/property.c        2007-06-08 19:56:51.000000000 +0300
++++ ion-3rc-20070608.fixed/ioncore/property.c  2007-06-18 16:32:11.000000000 +0300
+@@ -213,7 +213,7 @@
+     Status st;
+     if(!ioncore_g.use_mb){
+-        st=XStringListToTextProperty((char **)&ptr, n, &prop);
++        st=XStringListToTextProperty((char **)ptr, n, &prop);
+     }else{
+         st=XmbTextListToTextProperty(ioncore_g.dpy, (char **)ptr, n,
+                                      XTextStyle, &prop);