1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/motif/06-cast-size_t-to-int.patch
2020-02-25 00:04:11 -03:00

17 lines
575 B
Diff

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 )