Skip to content

Commit

Permalink
project-spec: meta-user: recipes-apps: mw-rf-init:
Browse files Browse the repository at this point in the history
rf_init.c updated to remove potentially unsecure printf( )
  • Loading branch information
darenlee committed Nov 3, 2020
1 parent 3a5b1f1 commit 9d83c1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main()
else
{
sprintf(logbuf,"rf_init: SENDING: %s",textbuf);
printf(logbuf);
printf("%s",logbuf);
if ( send(rftool_socket.socket_desc_ctrl,
textbuf,
strlen(textbuf),
Expand Down Expand Up @@ -207,6 +207,6 @@ int setupComms(socketStruct *socketInput, FILE * fhlog)

void writeToLog(char * inputMsg,FILE* fh)
{
printf(inputMsg);
printf("%s",inputMsg);
fwrite(inputMsg,strlen(inputMsg),1,fh);
}

0 comments on commit 9d83c1a

Please sign in to comment.