Skip to content

Commit

Permalink
Print string with length check
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Jul 27, 2023
1 parent deffbf8 commit 2c62af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ static DocParseErr_t parseJSONbyModel( const char * pJson,
const char * pFileParams = NULL;
uint32_t fileParamsLength = 0;

LogDebug( ( "JSON received: %s", pJson ) );
LogDebug( ( "JSON received: %.*s", messageLength, pJson ) );

/* Fetch the model parameters from the DocModel*/
pModelParam = pDocModel->pBodyDef;
Expand Down

0 comments on commit 2c62af8

Please sign in to comment.