From: Juan Lang Date: Thu, 19 Aug 2010 18:25:46 +0000 (-0700) Subject: mshtml: Fix off by one error in setting status text. X-Git-Tag: wine-1.3.1~32 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=5f6b135668777305ccf955da4297c7c00651f6d5;p=wine%2Feterwine.git mshtml: Fix off by one error in setting status text. --- diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c index d61c1f49c8..4aef475718 100644 --- a/dlls/mshtml/main.c +++ b/dlls/mshtml/main.c @@ -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; }