U++ framework
Do not panic. Ask here before giving up.

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: Sat Apr 25 18:32:28 GMT+2 2026

Total time taken to generate the page: 0.00867 seconds