Description: Correct 64 Architecture implementation of 32 bit data Author: Chris Donoghue Bug-Debian: http://bugs.debian.org/362068 --- wmctrl-1.07.orig/main.c +++ wmctrl-1.07/main.c @@ -1425,6 +1425,16 @@ static gchar *get_property (Display *dis * * long_length = Specifies the length in 32-bit multiples of the * data to be retrieved. + * + * NOTE: see + * http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html + * In particular: + * + * When the X window system was ported to 64-bit architectures, a + * rather peculiar design decision was made. 32-bit quantities such + * as Window IDs, atoms, etc, were kept as longs in the client side + * APIs, even when long was changed to 64 bits. + * */ if (XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False, xa_prop_type, &xa_ret_type, &ret_format, @@ -1441,6 +1451,8 @@ static gchar *get_property (Display *dis /* null terminate the result to make string handling easier */ tmp_size = (ret_format / 8) * ret_nitems; + /* Correct 64 Architecture implementation of 32 bit data */ + if(ret_format==32) tmp_size *= sizeof(long)/4; ret = g_malloc(tmp_size + 1); memcpy(ret, ret_prop, tmp_size); ret[tmp_size] = '\0'; es/dns.scm?id=304d5193860ad4d378896fe81c25c76798deb261'>commitdiff
path: root/gnu/packages/dns.scm
AgeCommit message (Expand)Author
2023-11-19gnu: knot: Update to 3.3.2....* gnu/packages/dns.scm (knot): Update to 3.3.2. Change-Id: Ic4909301027c75d269774fa9c52562933283f46c Tobias Geerinckx-Rice
2023-09-10gnu: knot: Update to 3.3.1....* gnu/packages/dns.scm (knot): Update to 3.3.1. Tobias Geerinckx-Rice
2023-08-29gnu: smartdns: Update to 43....* gnu/packages/dns.scm (smartdns): Update to 43. [arguments]<#:tests?>: Enable tests. <#:test-target>: Set to "test". <#:make-flags>: Set "VER". <#:phases>: Add phase 'skip-unavailable-tests, 'prepare-test-dir, 'enter-test-dir, 'leave-test-dir. [native-inputs]: Add googletest, isc-bind:utils. Signed-off-by: Christopher Baines <mail@cbaines.net> Hilton Chain
2023-08-16gnu: ddclient: Remove package....ddclient is unmaintained as of 2023-07-04 [1]. This reverts changes related to commit 0bc2d3e42b8800e875f24973f999739297f1f502. [1]: <https://github.com/ddclient/ddclient/issues/528> * gnu/packages/dns.scm (ddclient): Remove variable. * gnu/packages/patches/ddclient-skip-test.patch: Remove file. * gnu/local.mk: Unregister it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal
2023-07-23gnu: knot: Update to 3.2.9....* gnu/packages/dns.scm (knot): Update to 3.2.9. Tobias Geerinckx-Rice