summaryrefslogtreecommitdiffstats
path: root/x11/libxklavier/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/libxklavier/files')
-rw-r--r--x11/libxklavier/files/patch-libxklavier_xklavier_props.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier_props.c b/x11/libxklavier/files/patch-libxklavier_xklavier_props.c
new file mode 100644
index 000000000..a56ec7896
--- /dev/null
+++ b/x11/libxklavier/files/patch-libxklavier_xklavier_props.c
@@ -0,0 +1,15 @@
+--- libxklavier/xklavier_props.c.orig Sun Apr 16 20:51:36 2006
++++ libxklavier/xklavier_props.c Tue Jun 13 00:11:24 2006
+@@ -355,10 +355,8 @@ xkl_config_rec_get_from_root_window_prop
+ --varlen);
+ var[varlen] = '\0';
+ /* Resize the original layout */
+- ((char *)
+- g_realloc(*layout,
+- laylen + 1))[laylen] =
+- '\0';
++ *layout = g_realloc(*layout, laylen + 1);
++ (*layout)[laylen] = '\0';
+ }
+ }
+ layout++;