Commit 26b662454b730acfbcf49eb3fa19df5eefaa9403 Parent: c70a21514c3464c9e0bdd2ef411086c546a9ef9d Author: mcol <mcol@posteo.net> Date: 2020-10-27 14:18:56 +0000 Committer: mcol <mcol@posteo.net> Committed: 2020-10-27 14:18:56 +0000 Don't get stuck looking for required characters if they are't there
bdf2flf.c Modified
@@ -173,6 +173,7 @@ // print required characters first n = 0; j = &REQUIRED[0]; + i = 0; for (;;) { if (chars[n].encoding == *j) { strncpy(bitmap, chars[n].bitmap, ((width + 7) / 8) * height * 2); @@ -181,10 +182,14 @@ if (*j == 223) break; j++; + i = 0; } n++; + i++; if (n == num_chars) n = 0; + if (i == num_chars) + break; } // print additional characters second