Janitorial: Another possible strlenW missuse
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun Oct 26 09:44:34 CST 2003
Hallo,
wine/tools/wrc/y.tab.c countains:
WCHAR *wptr;
/* Remove escaped backslash and convert to forward */
for(wptr = str->str.wstr; (wptr = strchrW(wptr, '\\')) != NULL; wptr++)
if(wptr[1] == '\\')
{
memmove(wptr, wptr+1, strlenW(wptr));
str->size--;
}
I am quite sure that strlenW returns the number of characters in the string
and so it needs to be multiplied by sizeof(WCHAR).
Can anybody confirm?
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel
mailing list