From: chase Date: Sun, 30 Sep 2018 14:49:27 +0000 (-0500) Subject: gpftobdf.c: fix long int comiler warnings X-Git-Tag: 2.3.0a~25^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8c017caa2cdf3447120ba574cd7d4c23b2747bf;p=oweals%2Fcde.git gpftobdf.c: fix long int comiler warnings --- diff --git a/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c b/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c index 41db3ad3..455d2fc1 100644 --- a/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c +++ b/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c @@ -974,7 +974,7 @@ pPROPS( FontInfoRec *fip, FontPropRec *fplistPtr, unsigned int fplistNum ) bufp += k; wkp = fplistPtr; for ( i = 0; i < fplistNum; i++ ) { - k = snprintf( bufp, sizeof(buf) - (bufp - buf), "%s %d\n", (char *) (intptr_t) wkp->name, wkp->value ); + k = snprintf( bufp, sizeof(buf) - (bufp - buf), "%s %ld\n", (char *) (intptr_t) wkp->name, wkp->value ); bufp += k; wkp++; } @@ -1017,7 +1017,7 @@ pPROPS_pcf(PcfTmp *pcf) ); bufp += k; } else { - k = sprintf(bufp,"%s %d\n", + k = sprintf(bufp,"%s %ld\n", pcf->string + wkp->name, wkp->value ); bufp += k;