[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#197526: merge the only 2 xprop bugs in the BTS



merge 197526 253144
forwarded 197526 https://bugs.freedesktop.org/show_bug.cgi?id=7647
tag 197526 + patch
thanks

Patch attached.

-- 
G. Branden Robinson                |     You don't just decide to break
Debian GNU/Linux                   |     Kubrick's code of silence and then
branden@debian.org                 |     get drawn away from it to a
http://people.debian.org/~branden/ |     discussion about cough medicine.
Index: xprop.c
===================================================================
--- xprop.c	(revision 2474)
+++ xprop.c	(working copy)
@@ -1199,6 +1199,12 @@
 	nbytes = sizeof(short);
     else if (actual_format == 8)
 	nbytes = 1;
+    else if (actual_format == 0)
+	/*
+	 * Some broken implementations can return zero, despite what the
+	 * XGetWindowProperty manual page says.
+	 */
+	nbytes = 0;
     else
 	abort();
     *length = min(nitems * nbytes, max_len);

Attachment: signature.asc
Description: Digital signature


Reply to: