aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-09 15:14:24 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-09 15:14:24 +0000
commit08e164ce10fa25a47fffe0cd32948b5ee2cd27aa (patch)
tree8de97630cc5a165ca078f435022d2b83685ed6b7 /src/bin/termiolink.c
parentrefactor url handling. (diff)
downloadterminology-08e164ce10fa25a47fffe0cd32948b5ee2cd27aa.tar.gz
casestartswith() macro to help strncasecmp() with static comparison.
SVN revision: 77654
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 4fd1302..47fcfae 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -83,8 +83,8 @@ _termio_link_find(Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, int *x2r
else if (s[0] == '\'') endmatch = '\'';
else if (s[0] == '`') endmatch = '\'';
else if (s[0] == '<') endmatch = '>';
- if ((!strncasecmp((s + 1), "www.", 4)) ||
- (!strncasecmp((s + 1), "ftp.", 4)) ||
+ if ((casestartswith((s + 1), "www.")) ||
+ (casestartswith((s + 1), "ftp.")) ||
(s[1] == '/'))
{
goback = EINA_FALSE;