removing control characters from sent

This commit is contained in:
Václav Šmejkal 2023-03-31 18:21:06 +02:00
parent efa1d24047
commit 8d387df7d7
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -317,6 +317,13 @@ void *why2_communicate_thread(void *arg)
{
//READ
raw = read_socket_raw(connection.connection);
//REMOVE CONTROL CHARACTERS FROM raw
for (size_t i = 0; i < strlen(raw); i++)
{
if (raw[i] == '\\') raw[i] = '/';
}
received = read_socket_from_raw(raw);
if (received == NULL || raw == NULL) return NULL; //FAILED; EXIT THREAD