using the messageBytes parameter instead
This commit is contained in:
parent
fc1d127a6b
commit
fda6a3f215
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ int main(int argc, char **argv)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if it is open, send the message back to the client over the client socket
|
// if it is open, send the message back to the client over the client socket
|
||||||
write(fileIter, message, sizeof(message));
|
write(fileIter, message,messageBytes);
|
||||||
printf("\nMessage has been sent back to client.\n");
|
printf("\nMessage has been sent back to client.\n");
|
||||||
}
|
}
|
||||||
printf("\nMessage received.\n");
|
printf("\nMessage received.\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue