summaryrefslogtreecommitdiff
path: root/repo/motif/06-cast-size_t-to-int.patch
blob: b5ce9c643a72c32c21b407ad02482520a3769b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: To prevent build failure during building with Hardening options
 enabled due to "format '%d' expects argument of type 'int', but argument 5 has
 type 'size_t'", the fifth argument is cast to integer on the input.
Author: Paul Gevers <elbrus@debian.org>
Updated: 13-01-2013

--- a/tools/wml/wmloutkey.c
+++ b/tools/wml/wmloutkey.c
@@ -627,7 +627,7 @@
     fprintf (outfil, "    {%s, %s, %d, %s, \"%s\"},\n",
 	     tkclass,
 	     tksym,
-	     strlen(tokstg),
+	     (int)strlen(tokstg),
 	     tktoken,
 	     tokstg);
     if ( (int)strlen(tokstg) > *maxlen )