Don't forget to send a newline when forwarding requests.

This commit is contained in:
Guus Sliepen 2012-05-13 22:16:42 +02:00
parent 58007d7efa
commit 62b61a1b7c

View file

@ -104,7 +104,7 @@ void forward_request(connection_t *from, const char *request) {
char tmp[len + 1];
memcpy(tmp, request, len);
tmp[len] = '\n';
broadcast_meta(from, tmp, len);
broadcast_meta(from, tmp, sizeof tmp);
}
bool receive_request(connection_t *c, const char *request) {