1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- a/bdf.c
+++ b/bdf.c
@@ -2843,14 +2843,14 @@
bpr = ((c->bbx.width * font->bpp) + 7) >> 3;
for (j = 0; bpr != 0 && j < c->bytes; j++) {
if (j && j % bpr == 0)
- fprintf(out, eol);
+ fprintf(out, "%s", eol);
fprintf(out, "%02X", c->bitmap[j]);
}
/*
* Handle empty bitmaps like this.
*/
if (c->bbx.height > 0)
- fprintf(out, eol);
+ fprintf(out, "%s", eol);
fprintf(out, "ENDCHAR%s", eol);
/*
@@ -2915,14 +2915,14 @@
bpr = ((c->bbx.width * font->bpp) + 7) >> 3;
for (j = 0; bpr != 0 && j < c->bytes; j++) {
if (j && j % bpr == 0)
- fprintf(out, eol);
+ fprintf(out, "%s", eol);
fprintf(out, "%02X", c->bitmap[j]);
}
/*
* Handle empty bitmaps like this.
*/
if (c->bbx.height > 0)
- fprintf(out, eol);
+ fprintf(out, "%s", eol);
fprintf(out, "ENDCHAR%s", eol);
/*
|