Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/pwsafe/files: pwsafe-0.2.0-XChangeProperty.patch
Date: Sat, 25 Feb 2012 15:56:45
Message-Id: 20120225155636.5ACFC2004B@flycatcher.gentoo.org
1 nirbheek 12/02/25 15:56:36
2
3 Added: pwsafe-0.2.0-XChangeProperty.patch
4 Log:
5 Fix bug #402707 (proxy-commit for headch)
6
7 (Portage version: 2.2.0_alpha88/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch?rev=1.1&content-type=text/plain
14
15 Index: pwsafe-0.2.0-XChangeProperty.patch
16 ===================================================================
17 This patch came from <https://bugzilla.redhat.com/show_bug.cgi?id=667541>.
18
19 Index: pwsafe.cpp
20 ===================================================================
21 RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
22 retrieving revision 1.57
23 diff -u -r1.57 pwsafe.cpp
24 --- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
25 +++ pwsafe.cpp 5 Jan 2011 22:16:43 -0000
26 @@ -1820,10 +1820,10 @@
27 if (xev.xselectionrequest.target == XA_TARGETS(xdisplay)) {
28 // tell them what we can supply
29 const Atom targets[] = { XA_TARGETS(xdisplay), XA_TIMESTAMP(xdisplay), XA_TEXT(xdisplay), XA_STRING };
30 - XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TARGETS(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
31 + XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_ATOM, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
32 }
33 else if (xev.xselectionrequest.target == XA_TIMESTAMP(xdisplay)) {
34 - XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TIMESTAMP(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
35 + XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
36 }
37 else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) ||
38 xev.xselectionrequest.target == XA_STRING) {