[2/4] msi: Make sure attrs variable is properly double nul-terminated in ITERATE_InstallODBCDataSource.
Hans Leidekker
hans at codeweavers.com
Thu Feb 11 06:13:19 CST 2010
---
dlls/msi/action.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index f9d4965..b949fc7 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5031,8 +5031,8 @@ static UINT ITERATE_InstallODBCDataSource( MSIRECORD *rec, LPVOID param )
if (!attrs)
return ERROR_OUTOFMEMORY;
- sprintfW(attrs, attrs_fmt, desc);
- attrs[len - 1] = '\0';
+ len = sprintfW(attrs, attrs_fmt, desc);
+ attrs[len + 1] = 0;
if (!SQLConfigDataSourceW(NULL, request, driver, attrs))
{
--
1.6.3.3
More information about the wine-patches
mailing list