projects
/
framework
/
uifw
/
harfbuzz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9452bf
)
Change a couple strstr() to strchr()
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 15 Jun 2011 13:33:52 +0000
(09:33 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 15 Jun 2011 13:33:52 +0000
(09:33 -0400)
src/hb-ot-tag.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-tag.cc
b/src/hb-ot-tag.cc
index
0ed0c83
..
0ce635a
100644
(file)
--- 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 = str
str (a, "-"
);
+ p = str
chr (a, '-'
);
da = p ? (unsigned int) (p - a) : strlen (a);
- p = str
str (b, "-"
);
+ p = str
chr (b, '-'
);
db = p ? (unsigned int) (p - b) : strlen (b);
return strncmp (a, b, MAX (da, db));