Revision: 7302
http://mahogany.svn.sourceforge.net/mahogany/?rev=7302&view=rev
Author: vadz
Date: 2007-07-27 16:34:36 -0700 (Fri, 27 Jul 2007)
Log Message:
-----------
use wxTmemchr() instead of memchr() which doesn't work correctly on wxChar*
strings
Modified Paths:
--------------
trunk/M/src/util/matchurl.cpp
Modified: trunk/M/src/util/matchurl.cpp
===================================================================
--- trunk/M/src/util/matchurl.cpp 2007-07-27 23:26:08 UTC (rev 7301)
+++ trunk/M/src/util/matchurl.cpp 2007-07-27 23:34:36 UTC (rev 7302)
@@ -767,7 +767,7 @@
// also check that we have at least one dot in the domain part for the
// mail addresses
const wxChar *
- pDot = (wxChar *)memchr(text + pos + 1, '.', p - text - pos - 1);
+ pDot = wxTmemchr(text + pos + 1, '.', p - text - pos - 1);
if ( !pDot )
{
good = false;
@@ -777,8 +777,8 @@
// and has either two dots or at least a slash the other URLs,
// otherwise it probably isn't an address/URL neither (stuff like
// "... using ftp.If you ... " shouldn't be recognized as an URL)
- good = memchr(pDot + 1, '.', p - pDot - 1) != NULL ||
- memchr(pDot + 1, '/', p - pDot - 1) != NULL;
+ good = wxTmemchr(pDot + 1, '.', p - pDot - 1) != NULL ||
+ wxTmemchr(pDot + 1, '/', p - pDot - 1) != NULL;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates