summaryrefslogtreecommitdiff
path: root/tools/convbdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/convbdf.c')
-rw-r--r--tools/convbdf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c
index b566d2cd2e..437281c14a 100644
--- a/tools/convbdf.c
+++ b/tools/convbdf.c
@@ -48,7 +48,7 @@ struct font {
48 int bits_size; /* # words of bitmap_t bits*/ 48 int bits_size; /* # words of bitmap_t bits*/
49 49
50 /* unused by runtime system, read in by convbdf */ 50 /* unused by runtime system, read in by convbdf */
51 unsigned int nchars; /* number of different glyphs */ 51 int nchars; /* number of different glyphs */
52 unsigned int* offrot; /* offsets into rotated bitmap data*/ 52 unsigned int* offrot; /* offsets into rotated bitmap data*/
53 char * name; /* font name*/ 53 char * name; /* font name*/
54 char * facename; /* facename of font*/ 54 char * facename; /* facename of font*/
@@ -329,7 +329,7 @@ struct font* bdf_read_font(char *path)
329 } 329 }
330 330
331 if (pf->num_clipped > 0) { 331 if (pf->num_clipped > 0) {
332 fprintf(stderr, "Warning: %d characters out of %u were clipped " 332 fprintf(stderr, "Warning: %d characters out of %d were clipped "
333 "(%d at ascent, %d at descent)\n", 333 "(%d at ascent, %d at descent)\n",
334 pf->num_clipped, pf->nchars, 334 pf->num_clipped, pf->nchars,
335 pf->num_clipped_ascent, pf->num_clipped_descent); 335 pf->num_clipped_ascent, pf->num_clipped_descent);
@@ -412,7 +412,7 @@ int bdf_read_header(FILE *fp, struct font* pf)
412 continue; 412 continue;
413 } 413 }
414 if (isprefix(buf, "CHARS ")) { 414 if (isprefix(buf, "CHARS ")) {
415 if (sscanf(buf, "CHARS %u", &pf->nchars) != 1) { 415 if (sscanf(buf, "CHARS %d", &pf->nchars) != 1) {
416 fprintf(stderr, "Error: bad 'CHARS'\n"); 416 fprintf(stderr, "Error: bad 'CHARS'\n");
417 return 0; 417 return 0;
418 } 418 }