/[packages]/cauldron/xsel/current/SOURCES/xsel-1.2.0-MAX_NUM_TARGETS.patch
ViewVC logotype

Contents of /cauldron/xsel/current/SOURCES/xsel-1.2.0-MAX_NUM_TARGETS.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95522 - (show annotations) (download)
Fri May 6 18:28:59 2011 UTC (12 years, 11 months ago) by misc
File size: 856 byte(s)
imported package xsel
1 diff -ur xsel-1.2.0/xsel.c xsel-1.2.0.new/xsel.c
2 --- xsel-1.2.0/xsel.c 2008-02-12 05:50:18.000000000 +0100
3 +++ xsel-1.2.0.new/xsel.c 2011-03-23 16:38:38.942688972 +0100
4 @@ -68,7 +68,7 @@
5 * NB. We do not currently serve COMPOUND_TEXT; we can retrieve it but do not
6 * perform charset conversion.
7 */
8 -#define MAX_NUM_TARGETS 8
9 +#define MAX_NUM_TARGETS 9
10 static int NUM_TARGETS;
11 static Atom supported_targets[MAX_NUM_TARGETS];
12
13 @@ -2097,6 +2097,11 @@
14 supported_targets[s++] = XA_STRING;
15 NUM_TARGETS++;
16
17 + if (NUM_TARGETS > MAX_NUM_TARGETS) {
18 + exit_err ("internal error num-targets (%d) > max-num-targets (%d)\n",
19 + NUM_TARGETS, MAX_NUM_TARGETS);
20 + }
21 +
22 /* Get the COMPOUND_TEXT atom.
23 * NB. We do not currently serve COMPOUND_TEXT; we can retrieve it but
24 * do not perform charset conversion.

  ViewVC Help
Powered by ViewVC 1.1.30