X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol.c;h=ed34f523b16eac9ce5ee16445dc83818bf0b95a9;hb=9e917cc3b614d7a986416e6a2c3ea9ea583adacf;hp=3a0ae1d79554e292779059177d4cdc40545af162;hpb=1545909dcb3ac618754486f4ccd4d8f237d64bb7;p=tinc diff --git a/src/protocol.c b/src/protocol.c index 3a0ae1d7..ed34f523 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -103,7 +103,7 @@ void forward_request(connection_t *from, const char *request) { logger(DEBUG_META, LOG_DEBUG, "Forwarding %s from %s (%s): %s", request_name[atoi(request)], from->name, from->hostname, request); // Create a temporary newline-terminated copy of the request - int len = strlen(request); + size_t len = strlen(request); char tmp[len + 1]; memcpy(tmp, request, len); tmp[len] = '\n';