From e3693b72f0651985d4f619cde668611639dca885 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 Jun 2011 09:33:52 -0400 Subject: [PATCH] Change a couple strstr() to strchr() --- src/hb-ot-tag.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc index 0ed0c830b..0ce635a92 100644 --- a/src/hb-ot-tag.cc +++ b/src/hb-ot-tag.cc @@ -586,10 +586,10 @@ lang_compare_first_component (const char *a, unsigned int da, db; const char *p; - p = strstr (a, "-"); + p = strchr (a, '-'); da = p ? (unsigned int) (p - a) : strlen (a); - p = strstr (b, "-"); + p = strchr (b, '-'); db = p ? (unsigned int) (p - b) : strlen (b); return strncmp (a, b, MAX (da, db));