- Fixed a core dump in the sycamore protocol

- Added missing files aynnet.*
- Fixed the addition to root issue in scriptcontex
This commit is contained in:
koennecke
2009-02-17 08:34:46 +00:00
parent e0d306db60
commit ee49c5b56a
5 changed files with 802 additions and 16 deletions

View File

@ -476,7 +476,7 @@ void sycformat(char *tag, OutCode msgFlag, pDynString msgString,
int SCWriteSycamore(SConnection * pCon, char *pBuffer, int iOut)
{
int iRet;
char pBueffel[MAXMSG], *pBufferFrom, *pBufferTo;
char pBueffel[MAXMSG];
long taskID = 0;
/* char pPrefix[40];*/
pDynString pMsg = NULL;
@ -487,16 +487,7 @@ int SCWriteSycamore(SConnection * pCon, char *pBuffer, int iOut)
if (strlen(pBuffer) == 0) {
return 0;
}
/* Strip \r and \n */
for (pBufferFrom = pBufferTo = pBuffer;; pBufferFrom++) {
if (*pBufferFrom == '\r' || *pBufferFrom == '\n')
continue;
*pBufferTo = *pBufferFrom;
if (*pBufferTo == '\0')
break;
pBufferTo++;
}
if (!SCVerifyConnection(pCon)) {
return 0;
}