small bugfixes M.Z.

This commit is contained in:
cvs
2004-08-17 12:04:37 +00:00
parent d33ca0c937
commit 58f7b81b5b

View File

@ -456,6 +456,7 @@ static void printAll(SicsInterp *pSics, SConnection *pCon)
strcat(pBueffel,"\r\n"); strcat(pBueffel,"\r\n");
SCWrite(pCon,pBueffel,eStatus); SCWrite(pCon,pBueffel,eStatus);
iNum = 0; iNum = 0;
pBueffel[0]='\0';
} }
pCurrent = pCurrent->pNext; pCurrent = pCurrent->pNext;
} }
@ -508,6 +509,7 @@ static void printInterface(SicsInterp *pSics, SConnection *pCon, int id)
strcat(pBueffel,"\r\n"); strcat(pBueffel,"\r\n");
SCWrite(pCon,pBueffel,eStatus); SCWrite(pCon,pBueffel,eStatus);
iNum = 0; iNum = 0;
pBueffel[0]='\0';
} }
} }
} }
@ -559,6 +561,7 @@ static void printMatch(SicsInterp *pSics, SConnection *pCon, char *mask)
strcat(pBueffel,pCurrent->pName); strcat(pBueffel,pCurrent->pName);
strcat(pBueffel,"\r\n"); strcat(pBueffel,"\r\n");
SCWrite(pCon,pBueffel,eStatus); SCWrite(pCon,pBueffel,eStatus);
pBueffel[0]='\0';
iNum = 0; iNum = 0;
} }
} }
@ -607,6 +610,7 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *type)
strcat(pBueffel,pCurrent->pName); strcat(pBueffel,pCurrent->pName);
strcat(pBueffel,"\r\n"); strcat(pBueffel,"\r\n");
SCWrite(pCon,pBueffel,eStatus); SCWrite(pCon,pBueffel,eStatus);
pBueffel[0]='\0';
iNum = 0; iNum = 0;
} }
} }
@ -677,7 +681,7 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *type)
printInterface(pSics,pCon,ENVIRINTERFACE); printInterface(pSics,pCon,ENVIRINTERFACE);
return 1; return 1;
} }
SCWrite(pCon,"ERROR: interface description nor recognized",eError); SCWrite(pCon,"ERROR: interface description not recognized",eError);
return 0; return 0;
} }
/* /*