Convbdf fails on BDF fonts with an empty copyright field (which AFAIK is
legal) such as some fonts created by fontforge. Attached is a quick
patch fixing this.

bk

Index: tools/convbdf.c
===================================================================
--- tools/convbdf.c	(revision 10)
+++ tools/convbdf.c	(working copy)
@@ -340,7 +340,7 @@
             continue;
         }
         if (isprefix(buf, "COPYRIGHT ")) {	/* not required*/
-            if (sscanf(buf, "COPYRIGHT \"%[^\"]", copyright) != 1) {
+            if (sscanf(buf, "COPYRIGHT \"%s\"", copyright) != 1) {
                 fprintf(stderr, "Error: bad 'COPYRIGHT'\n");
                 return 0;
             }

Reply via email to