From 92bac64bd2d5fffe70229790be27d335aa6c6de3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 25 Oct 2017 18:22:47 -0600 Subject: [PATCH] [post] Oops! https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.668/job/ikfj8peowgrp059t --- src/hb-ot-post-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index 293dda62d..3eae7f7f1 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -195,7 +195,7 @@ struct post { for (int i = 0; i < NUM_FORMAT1_NAMES; i++) { - if (strncmp (name, format1_names[i], len) == 0 && format1_names[len] == '\0') + if (strncmp (name, format1_names[i], len) == 0 && format1_names[i][len] == '\0') { *glyph = i; return true; @@ -218,7 +218,7 @@ struct post unsigned int index = v2.glyphNameIndex[gid]; if (index < NUM_FORMAT1_NAMES) { - if (strncmp (name, format1_names[index], len) == 0 && format1_names[len] == '\0') + if (strncmp (name, format1_names[index], len) == 0 && format1_names[index][len] == '\0') { *glyph = gid; return true;