using the messageBytes parameter instead

This commit is contained in:
Charles Descamps 2025-02-19 20:08:49 -07:00
parent fc1d127a6b
commit fda6a3f215

View file

@ -134,7 +134,7 @@ int main(int argc, char **argv)
else
{
// 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 received.\n");