From 58f7b81b5b5adf6e173dcad1a73b8b28d035f3ca Mon Sep 17 00:00:00 2001 From: cvs Date: Tue, 17 Aug 2004 12:04:37 +0000 Subject: [PATCH] small bugfixes M.Z. --- SCinter.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SCinter.c b/SCinter.c index ac5d32e6..7706542c 100644 --- a/SCinter.c +++ b/SCinter.c @@ -456,6 +456,7 @@ static void printAll(SicsInterp *pSics, SConnection *pCon) strcat(pBueffel,"\r\n"); SCWrite(pCon,pBueffel,eStatus); iNum = 0; + pBueffel[0]='\0'; } pCurrent = pCurrent->pNext; } @@ -508,6 +509,7 @@ static void printInterface(SicsInterp *pSics, SConnection *pCon, int id) strcat(pBueffel,"\r\n"); SCWrite(pCon,pBueffel,eStatus); iNum = 0; + pBueffel[0]='\0'; } } } @@ -559,6 +561,7 @@ static void printMatch(SicsInterp *pSics, SConnection *pCon, char *mask) strcat(pBueffel,pCurrent->pName); strcat(pBueffel,"\r\n"); SCWrite(pCon,pBueffel,eStatus); + pBueffel[0]='\0'; iNum = 0; } } @@ -607,6 +610,7 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *type) strcat(pBueffel,pCurrent->pName); strcat(pBueffel,"\r\n"); SCWrite(pCon,pBueffel,eStatus); + pBueffel[0]='\0'; iNum = 0; } } @@ -677,7 +681,7 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *type) printInterface(pSics,pCon,ENVIRINTERFACE); return 1; } - SCWrite(pCon,"ERROR: interface description nor recognized",eError); + SCWrite(pCon,"ERROR: interface description not recognized",eError); return 0; } /*