Georges Khaznadar <[EMAIL PROTECTED]> writes:

> thank you for the hint about su -s,

Thanks for applying that fix promptly.

> about the font checksum issue, I suspect a bug in the upstream code

Indeed, though the problem's actually (as I suspected) a 64-bit
cleanliness issue, which the attached patch addresses; could you
please apply it when you get a chance?

Merci beaucoup!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger [EMAIL PROTECTED] (NOT a valid e-mail address) for more info.

--- tfm.c~	2003-11-22 02:28:38.000000000 -0500
+++ tfm.c	2006-07-07 15:44:42.000000000 -0400
@@ -21,7 +21,7 @@
     int bc, ec;
     int checksum, designsize;
     struct f {
-	long int w,h,d;
+	int w,h,d;
     } f[256];
 } tfm;
 
@@ -44,8 +44,8 @@
 {
     int i, k, t, len, charcnt;
     char namebuf[1024];
-    long int *wpbase;
-    long int *headp, *fp, *fip, *wp, *hp, *dp;
+    int *wpbase;
+    int *headp, *fp, *fip, *wp, *hp, *dp;
     unsigned char *tfmbuf, *ftp;
 
     memset(&tfm,0,sizeof(tfm));
@@ -59,7 +59,7 @@
     tfm.bc=tfmbc; tfm.ec=tfmec;
     charcnt=tfmec-tfmbc+1;
     if(charcnt<=0) return;
-    wpbase=(long int *) tfmbuf;
+    wpbase=(int *) tfmbuf;
     headp=wpbase+6; 		/* header */
     fp=headp+tfmlh; 		/* font info */
     wp=fp+charcnt;		/* width table */

Reply via email to