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

oldstable
Hans Leidekker 2010-02-11 13:13:19 +01:00 committed by Alexandre Julliard
parent 4742dfba98
commit 2568e5ec65
1 changed files with 2 additions and 2 deletions

View File

@ -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))
{