File: high-bit

package info (click to toggle)
bogl 0.1.18-17
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,304 kB
  • sloc: ansic: 7,597; makefile: 211; perl: 26; sh: 10
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix conversion of lines of glyphs with high bit set
    
(Closes: Bug#796034)
diff --git a/bogl-font.c b/bogl-font.c
index 5dbcec0..ef26514 100644
--- a/bogl-font.c
+++ b/bogl-font.c
@@ -254,7 +254,7 @@ bogl_read_bdf (char *filename)
 	  row = font_height - descent - bby - bbh + i;
 	  if (row < 0 || row >= font_height)
 	    continue;
-	  bm[row] = strtol (line, NULL, 16) << (32 - 4 * strlen (line) - bbx);
+	  bm[row] = strtoul (line, NULL, 16) << (32 - 4 * strlen (line) - bbx);
 	}
     }