From de66e750a5c5798dab5347675d6581183efa8105 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 22 Feb 2004 02:21:37 +0000 Subject: [PATCH] Cast strlen to int for printf, so we're 64-bit clean. --- ChangeLog | 5 +++++ fc-glyphname/fc-glyphname.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d532022..2087cca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-21 Manish Singh + + * fc-glyphname/fc-glyphname.c: (main): + Cast strlen to int for printf, so we're 64-bit clean. + 2004-02-11 Keith Packard * configure.in: diff --git a/fc-glyphname/fc-glyphname.c b/fc-glyphname/fc-glyphname.c index 769f4be..01da041 100644 --- a/fc-glyphname/fc-glyphname.c +++ b/fc-glyphname/fc-glyphname.c @@ -286,7 +286,7 @@ main (int argc, char **argv) for (i = 0; i < nraw; i++) printf ("static struct { FcChar32 ucs; FcChar8 name[%d]; }" " glyph%d = { 0x%lx, \"%s\" };\n", - strlen (raw[i]->name) + 1, + (int) strlen (raw[i]->name) + 1, i, (unsigned long) raw[i]->ucs, raw[i]->name); /*