mshtml: Fix off by one error in setting status text.

This commit is contained in:
Juan Lang 2010-08-19 11:25:46 -07:00 committed by Alexandre Julliard
parent 158f5be804
commit 5f6b135668
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ void set_statustext(HTMLDocumentObj* doc, INT id, LPCWSTR arg)
DWORD len = lstrlenW(p) + lstrlenW(arg) - 1;
LPWSTR buf = heap_alloc(len * sizeof(WCHAR));
snprintfW(buf, len - 1, p, arg);
snprintfW(buf, len, p, arg);
p = buf;
}