diff options
author | Dan Winship <danw@src.gnome.org> | 2001-03-07 23:39:54 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-03-07 23:39:54 +0800 |
commit | bb6e7097e051541c60614330316bef5623c03e0a (patch) | |
tree | aa379a7c5304827f1710b3d10a7ad847d7689c1f /e-util/e-html-utils.c | |
parent | 0d719990521adf12e458fb193c679b8378aa3a55 (diff) | |
download | gsoc2013-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.c | 2 |
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; } |