mirror of https://github.com/FreeRDP/FreeRDP
Fixed bad sizeof in calloc.
This commit is contained in:
parent
5c71a64910
commit
e256e14cc4
|
@ -657,7 +657,7 @@ wIniFile* IniFile_New()
|
|||
{
|
||||
ini->nSections = 0;
|
||||
ini->cSections = 64;
|
||||
ini->sections = (wIniFileSection**) malloc(sizeof(wIniFileSection) * ini->cSections);
|
||||
ini->sections = (wIniFileSection**) calloc(ini->cSections, sizeof(wIniFileSection*));
|
||||
}
|
||||
|
||||
return ini;
|
||||
|
|
Loading…
Reference in New Issue