- Various fixes to make mountaingum work
This commit is contained in:
@@ -236,6 +236,7 @@
|
||||
int OpenVerifyLogFile()
|
||||
{
|
||||
char pFile[256];
|
||||
char filnam[512];
|
||||
char *pChar = NULL;
|
||||
|
||||
pChar = IFindOption(pSICSOptions,"LogFileBaseName");
|
||||
@@ -245,10 +246,10 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(pFile,pChar);
|
||||
strncpy(pFile,pChar,255);
|
||||
}
|
||||
sprintf(pFile,"%s%2.2d.log",pFile, iFile);
|
||||
fLogFile = fopen(pFile,"w");
|
||||
snprintf(filnam,511,"%s%2.2d.log",pFile, iFile);
|
||||
fLogFile = fopen(filnam,"w");
|
||||
if(!fLogFile)
|
||||
{
|
||||
fprintf(stderr,"ERROR: Cannot open logfile %s for writing\n",pFile);
|
||||
|
||||
Reference in New Issue
Block a user