From cc2fc17ecd535f004fcac191e97673ee84051702 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Mon, 22 Jan 2018 23:00:35 +0100 Subject: [PATCH] send enc --- src/network/tcpsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/tcpsocket.c b/src/network/tcpsocket.c index 6e4690b..172d753 100644 --- a/src/network/tcpsocket.c +++ b/src/network/tcpsocket.c @@ -186,7 +186,7 @@ void send_tcp(char *msg) { size_t base64_enc_length = Base64encode(base64_enc_str, enc, length_enc); for (int i = 0; i <= tcp_entry_last; i++) { - if (send(network_array[i].sockfd, msg, strlen(msg), 0) < 0) { + if (send(network_array[i].sockfd, base64_enc_str, base64_enc_length, 0) < 0) { close(network_array->sockfd); printf("Removing bad TCP connection!\n"); for (int j = i; j < tcp_entry_last; j++) {