mshtml: Fix off by one error in setting status text.
This commit is contained in:
parent
158f5be804
commit
5f6b135668
|
@ -114,7 +114,7 @@ void set_statustext(HTMLDocumentObj* doc, INT id, LPCWSTR arg)
|
||||||
DWORD len = lstrlenW(p) + lstrlenW(arg) - 1;
|
DWORD len = lstrlenW(p) + lstrlenW(arg) - 1;
|
||||||
LPWSTR buf = heap_alloc(len * sizeof(WCHAR));
|
LPWSTR buf = heap_alloc(len * sizeof(WCHAR));
|
||||||
|
|
||||||
snprintfW(buf, len - 1, p, arg);
|
snprintfW(buf, len, p, arg);
|
||||||
|
|
||||||
p = buf;
|
p = buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue