Commit 5f6b1356 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent 158f5be8
...@@ -114,7 +114,7 @@ void set_statustext(HTMLDocumentObj* doc, INT id, LPCWSTR arg) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment