diff --git a/protocol.c b/protocol.c index a7d6b091..a9522ee8 100644 --- a/protocol.c +++ b/protocol.c @@ -185,8 +185,8 @@ static int ContextDo(SConnection *pCon, SicsInterp *pSics, void *pData, status = Tcl_GetInt(pSics->pTcl,argv[1],&comCon.transID); if(status != TCL_OK){ - snprintf(command,1023,"ERROR: failed to convert %s to transaction ID", argv[1]); - SCWrite(pCon,command,eError); + snprintf(buffer,1023,"ERROR: failed to convert %s to transaction ID", argv[1]); + SCWrite(pCon,buffer,eError); return 0; } strncpy(comCon.deviceID,argv[2],SCDEVIDLEN);