- Removed SCStart/EndBuffering as far as possible and fixed an issue with

the capture command in that it not put resluts into the Tcl interpreter.
  This broke scriptcontext scripts in complicated situations.
- Resolved some issues with the TAS calculation and negative scattering sense.
- Fixed a bug which did not reset the state to idle after checking
  reachability in confvirtualmot.c


SKIPPED:
	psi/autowin.c
	psi/eigera2.c
	psi/jvlprot.c
	psi/makefile_linux
	psi/sinqhttpopt.c
	psi/tasscan.c
This commit is contained in:
koennecke
2012-10-29 12:56:29 +00:00
parent d798373fdf
commit 4f560552c4
27 changed files with 599 additions and 129 deletions

View File

@@ -199,17 +199,19 @@ static int listRestoreErr(pRestoreObj self, SConnection * pCon)
int status;
pDynString data = NULL;
SCStartBuffering(pCon);
data = CreateDynString(256,256);
if(data == NULL){
SCWrite(pCon,"ERROR: out of memory listing errors",eError);
return 0;
}
status = LLDnodePtr2First(self->errList);
while (status == 1) {
LLDstringData(self->errList, buffer);
SCWrite(pCon, buffer, eValue);
DynStringConcatLine(data,buffer);
status = LLDnodePtr2Next(self->errList);
}
data = SCEndBuffering(pCon);
if (data != NULL) {
SCWrite(pCon, GetCharArray(data), eValue);
}
SCWrite(pCon, GetCharArray(data), eValue);
DeleteDynString(data);
return 1;
}