Skip to content

Commit

Permalink
Fixes mod-audio#73.
Browse files Browse the repository at this point in the history
Check if command response is for fd 1.
  • Loading branch information
riban-bw committed Jul 7, 2024
1 parent b6dc4e0 commit 394631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#define MESSAGE_INVALID_ARGUMENT "invalid argument"

// defines the function to send responses to sender
#define SEND_TO_SENDER(id,msg,len) socket_send((id),(msg),(len)+1)
#define SEND_TO_SENDER(id,msg,len) if(id==1)fprintf(stdin,"%s\n",msg); else socket_send((id),(msg),(len)+1)


/*
Expand Down

0 comments on commit 394631d

Please sign in to comment.