shithub: neatroff

Download patch

ref: 7876408107c2ef0fba738366d674e0ba72eb8c6e
parent: f18f6453e6a1392810ee834c9468abc799447dae
author: Ali Gholami Rudi <ali@rudi.ir>
date: Tue Jul 23 18:44:57 EDT 2013

dev: ignore unknown parameters in device and font files

--- a/dev.c
+++ b/dev.c
@@ -90,9 +90,9 @@
 			fscanf(desc, "%d", &dev_ver);
 			continue;
 		}
-		if (!strcmp("charset", tok)) {
+		if (!strcmp("charset", tok))
 			break;
-		}
+		skipline(desc);
 	}
 	fclose(desc);
 	dev_prologue();
--- a/font.c
+++ b/font.c
@@ -163,6 +163,7 @@
 		}
 		if (!font_section(fn, fin, tok))
 			break;
+		skipline(fin);
 	}
 	fclose(fin);
 	return fn;