aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-utils.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-07 23:39:54 +0800
committerDan Winship <danw@src.gnome.org>2001-03-07 23:39:54 +0800
commitbb6e7097e051541c60614330316bef5623c03e0a (patch)
treeaa379a7c5304827f1710b3d10a7ad847d7689c1f /e-util/e-html-utils.c
parent0d719990521adf12e458fb193c679b8378aa3a55 (diff)
downloadgsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.gz
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.zst
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.zip
Fix an off-by-one in the "is this for real?" check so that "http:// "
* e-html-utils.c (url_extract): Fix an off-by-one in the "is this for real?" check so that "http:// " won't get URLified svn path=/trunk/; revision=8581
Diffstat (limited to 'e-util/e-html-utils.c')
-rw-r--r--e-util/e-html-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c
index e63b233676..41a5a25d3b 100644
--- a/e-util/e-html-utils.c
+++ b/e-util/e-html-utils.c
@@ -55,7 +55,7 @@ url_extract (const unsigned char **text, gboolean check)
if (check) {
/* Make sure we weren't fooled. */
p = memchr (*text, ':', end - *text);
- if (!p || end - p < 3)
+ if (!p || end - p < 4)
return NULL;
}