This fixes the segfault issue, which is caused by a misspecified
buffer size passed to XGetErrorDatabaseText. However, it doesn't
fix the underlying fact that hotkeys' approach no longer seems
to work with the current X :(

--- hotkeys-0.5.7.4/src/hotkeys.c       2009-05-24 20:56:12.000000000 +0200
+++ hotkeys-0.5.7.4.1/src/hotkeys.c     2010-07-23 12:30:38.000000000 +0200
@@ -1296,8 +1296,9 @@
 
     XmuSnprintf(mesg, sizeof(mesg),
                 "%s.%d", ext->name, ev->minor_code);
-    XGetErrorDatabaseText(dpy, "XRequest", mesg, "", minor_op, BUFSIZ);
+    XGetErrorDatabaseText(dpy, "XRequest", mesg, "", minor_op, 128);
 
+    fprintf(stderr, "X error: major_op=%s minor_op=%s mesg=%s\n", major_op, 
minor_op, mesg);
 
     if ( d == dpy && ev->error_code == BadValue &&
          strncmp( major_op, "XKEYBOARD", 9 ) == 0 &&


ciao,
-- 
[*Thomas  Themel*]  * Erwin Burgstaller <b...@fastrun.at>:
[extended contact]  > Eine DTD sagt mehr als 1000 Worte.
[info provided in]   Eine Frau auch, so what? ;)
[*message header*]      - Alexander Griesser in at.linux



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to