Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Bug: AString<B>::ReverseFind broken for wchar
Bug: AString<B>::ReverseFind broken for wchar [message #42257] Sun, 02 March 2014 17:49 Go to previous message
hans is currently offline  hans
Messages: 44
Registered: March 2006
Location: Germany
Member
Small bug in SVN rev6982:

in function
int AString<B>::ReverseFind(int len, const tchar *s, int from) const


change line
if(*s == *p && memcmp(s, p, len) == 0)

to
if(*s == *p && memcmp(s, p, len*sizeof(tchar)) == 0)


Thanks,
Hans
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: To get xml errors from LoadFromXML
Next Topic: String should implement the Boyer Moore algo
Goto Forum:
  


Current Time: Sun Apr 28 21:48:03 CEST 2024

Total time taken to generate the page: 0.04597 seconds