Commit 2568e5ec authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Make sure attrs variable is properly double nul-terminated in ITERATE_InstallODBCDataSource.

parent 4742dfba
......@@ -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))
{
......
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