diff --git a/LiteProtocolCore.cpp b/LiteProtocolCore.cpp index 92ebdd8..b644163 100644 --- a/LiteProtocolCore.cpp +++ b/LiteProtocolCore.cpp @@ -117,13 +117,13 @@ bool CLiteProtocol::VerifyStr( const char * pString, int pLength, int &ParamCoun // Verify Start and end if (pString[0] != StartChar) { - strcpy( pError, "Invalid Start character" ); + sprintf( pError, "Invalid Start character - %02Xh", pString[0] ); return false; } // Verify Start and end if (pString[pLength-1] != EndChar) { - strcpy( pError, "Invalid End character" ); + sprintf( pError, "Invalid End character - %02Xh", pString[pLength-1] ); return false; }