Huw D M Davies <hdavies@codeweavers.com> Fix off by one error in TOOLBAR_AddStringW
Index: dlls/comctl32/toolbar.c =================================================================== RCS file: /home/wine/wine/dlls/comctl32/toolbar.c,v retrieving revision 1.98 diff -u -r1.98 toolbar.c --- dlls/comctl32/toolbar.c 2002/01/04 21:50:01 1.98 +++ dlls/comctl32/toolbar.c 2002/01/11 15:17:36 @@ -2260,7 +2260,7 @@ TRACE("len=%d %s\n", len, debugstr_w(p)); infoPtr->strings[infoPtr->nNumStrings] = COMCTL32_Alloc (sizeof(WCHAR)*(len+1)); - lstrcpynW (infoPtr->strings[infoPtr->nNumStrings], p, len); + lstrcpynW (infoPtr->strings[infoPtr->nNumStrings], p, len+1); infoPtr->nNumStrings++; p += (len+1);