Thomas Bushnell BSG <[EMAIL PROTECTED]> writes:

> I'm attempting a fix now.

Done; here is the patch:

--- /home/debian/mftrace-1.1.16/gf2pbm.c	2005-10-15 13:57:58.000000000 -0700
+++ /home/src/mftrace-1.1.16/gf2pbm.c	2005-10-15 14:23:49.000000000 -0700
@@ -302,7 +302,7 @@
 	ubyte	cmnd;
 	int	min_m, max_m, min_n, max_n;
 	BMUNIT	*cp, *basep, *maxp;
-	char	**basep_cpp = &basep;
+	BMUNIT	**basep_cpp = &basep;
 	int	bytes_wide;
 	bool	paint_switch;
 #define	White	false
@@ -391,7 +391,7 @@
 		case SKIP2:
 		case SKIP3:
 		  *(basep_cpp) +=
-		    num(GF_file, WIDENINT cmnd - SKIP0) * bytes_wide;
+		    num(GF_file, WIDENINT cmnd - SKIP0) * bytes_wide / sizeof (BMUNIT);
 		case SKIP0:
 		    new_row = true;
 		    paint_switch = White;
@@ -414,7 +414,7 @@
 	    if (new_row) {
 
 	      *(basep_cpp) +=
-		bytes_wide;
+		bytes_wide / sizeof (BMUNIT);
 	      if (basep >= maxp || cp >= basep) too_many_bits(ch);
 		 cp = basep;
 		word_weight = BMBITS;
I've verified that this works completely, producing a nice happy
looking pbm output file.

Thomas
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to