Juan Lang : mshtml: Fix off by one error in setting status text.
Alexandre Julliard
julliard at winehq.org
Fri Aug 20 10:19:11 CDT 2010
Module: wine
Branch: master
Commit: 5f6b135668777305ccf955da4297c7c00651f6d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f6b135668777305ccf955da4297c7c00651f6d5
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Aug 19 11:25:46 2010 -0700
mshtml: Fix off by one error in setting status text.
---
dlls/mshtml/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c
index d61c1f4..4aef475 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;
}
More information about the wine-cvs
mailing list