From 3eee39611fad911c0e33087d2ee88e9fd52049b6 Mon Sep 17 00:00:00 2001 From: Charl Wentzel Date: Tue, 21 Nov 2017 11:42:42 +0200 Subject: [PATCH] Minor update: - LiteProtocolCore: - improve error logging --- LiteProtocolCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }