bug no.2902374 fixed

This commit is contained in:
h_vogt 2009-11-24 21:30:43 +00:00
parent 514c8e8573
commit 6d13becdb7
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2009-11-24 Holger Vogt
* com_sysinfo.c: bugfix no. 2902374
2009-11-21 Holger Vogt
* spicelib/parser/inptree.c: memory allocation of struct pwldata->vals
failed in MS Visual Studio 2008, changed.

View File

@ -286,7 +286,7 @@ TesError tesCreateSystemInfo(TesSystemInfo *info) {
while((strPtr = strstr(strPtr, matchStrProc)) != NULL) {
// numProcs++;
strPtr += strlen(matchStrProc);
if isblank(*strPtr) numProcs++;
if (isblank(*strPtr)) numProcs++;
}
info->numLogicalProcessors = numProcs;
physIDs = malloc(numProcs * sizeof(tInt));