summaryrefslogtreecommitdiff
path: root/x11/modular-xorg-server/patches/patch-eg
diff options
context:
space:
mode:
Diffstat (limited to 'x11/modular-xorg-server/patches/patch-eg')
-rw-r--r--x11/modular-xorg-server/patches/patch-eg24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/modular-xorg-server/patches/patch-eg b/x11/modular-xorg-server/patches/patch-eg
new file mode 100644
index 00000000000..c957a9f9013
--- /dev/null
+++ b/x11/modular-xorg-server/patches/patch-eg
@@ -0,0 +1,24 @@
+$NetBSD: patch-eg,v 1.1 2008/02/25 15:39:16 joerg Exp $
+
+--- Xi/chgfctl.c.orig 2006-06-06 19:13:52.000000000 +0200
++++ Xi/chgfctl.c
+@@ -451,18 +451,13 @@ ChangeStringFeedback(ClientPtr client, D
+ xStringFeedbackCtl * f)
+ {
+ register char n;
+- register long *p;
+ int i, j;
+ KeySym *syms, *sup_syms;
+
+ syms = (KeySym *) (f + 1);
+ if (client->swapped) {
+ swaps(&f->length, n); /* swapped num_keysyms in calling proc */
+- p = (long *)(syms);
+- for (i = 0; i < f->num_keysyms; i++) {
+- swapl(p, n);
+- p++;
+- }
++ SwapLongs((CARD32 *) syms, f->num_keysyms);
+ }
+
+ if (f->num_keysyms > s->ctrl.max_symbols) {