fixed bug in the README's code snippet

This commit is contained in:
Francesco Cozzuto
2023-03-20 14:50:49 +01:00
parent b1b235a09f
commit 57c2f61ea3
+2 -2
View File
@@ -30,8 +30,8 @@ int main(void)
char buffer[1024];
size_t num = microtcp_recv(client, buffer, sizeof(buffer), NULL);
microtcp_send(client, "echo: ", 6, &errcode);
microtcp_send(client, buffer, num, &errcode);
microtcp_send(client, "echo: ", 6, NULL);
microtcp_send(client, buffer, num, NULL);
microtcp_close(client);
}