mshtml: Fix off by one error in setting status text.
authorJuan Lang <juan.lang@gmail.com>
Thu, 19 Aug 2010 18:25:46 +0000 (11:25 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 20 Aug 2010 11:21:28 +0000 (13:21 +0200)
dlls/mshtml/main.c

index d61c1f49c8defea8d8a47793e1c8647cbb87fcfb..4aef47571893e0067041f0874b4f277d9798cbf1 100644 (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;
     }