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

Annotation of /cauldron/xsel/pristine/SOURCES/xsel-1.2.0-MAX_NUM_TARGETS.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1834660 - (hide annotations) (download)
Wed Mar 30 09:36:48 2022 UTC (2 months, 4 weeks ago) by schedbot
File size: 856 byte(s)
Copying release 1.2.0-10.mga9 to pristine/ directory.
1 misc 95522 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.28