summaryrefslogtreecommitdiffstats
path: root/lang/perl/perl-authen-sasl-xs/patches/102-strlen-size.patch
blob: 06c27ac8235bac486059a99fd91cfce019d06bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix type mismatches on 64-bit platforms
Author: Russ Allbery <rra@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-10-25

Change the data types used in the XS code for the module to ensure data
types match Perl's expectations on 64-bit platforms.

Note:
(libauthen-sasl-xs-perl is the successor of libauthen-sasl-cyrus-perl)
Most of the original changes are applied upstream, one remains.
[gregor 2023-10-25]

--- a/XS.xs
+++ b/XS.xs
@@ -946,7 +946,7 @@ void ExtractParentCallbacks(SV *parent,
 {
 	char *key;
 	int count=0,i;
-	long l;
+	I32 l;
 #ifndef SASL2
 	// Missing SASL1 canonuser workaround
 	int canon=-1,auth=-1;