gEDA-dev: [PATCH] Gerbv: Drill.c: Read Y values when guessing the format

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu May 17 10:54:07 EDT 2007


Appended patch also reads the Y values when guessing the format
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--- gerbv-1.0.2.orig/src/drill.c	2006-07-25 23:47:59.000000000 +0200
+++ gerbv-1.0.2/src/drill.c	2007-05-17 16:49:17.000000000 +0200
@@ -364,6 +364,7 @@
 		    }
 		}
 	    }
+	    if(read != EOF) gerb_ungetc(fd);
 	    max_length = max(max_length, length);
 	    max_leading_zeros = max(max_leading_zeros, leading_zeros);
 	    max_trailing_zeros = max(max_trailing_zeros, trailing_zeros);


More information about the geda-dev mailing list