Commit 4a1bc8fcf60db43de515ac9ba2e9475ae95f6d67

Tom Kacvinsky 2001-04-02T17:47:16

In function TT_Load_Metrics, fix improper an improper pointer dereference. Submitted by herbert duerr <duerr@sun.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 254fc8e..baf35be 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -751,7 +751,7 @@
       /* fonts usually only, nothing serious will happen        */
       if ( num_shorts > num_shorts_checked && num_shorts_checked > 0 )
       {
-        FT_Short  val = *(shorts)[num_shorts_checked - 1];
+        FT_Short  val = (*shorts)[num_shorts_checked - 1];
 
 
         limit = *shorts + num_shorts;