use size_t where appropriate instead of unsigned int
diff --git a/telnet-client.c b/telnet-client.c
index d58f76b..28de2b3 100644
--- a/telnet-client.c
+++ b/telnet-client.c
@@ -57,7 +57,7 @@
 	}
 }
 
-static void _send(int sock, const char *buffer, unsigned int size) {
+static void _send(int sock, const char *buffer, size_t size) {
 	int rs;
 
 	/* send data */
@@ -132,7 +132,7 @@
 		break;
 	/* error */
 	case LIBTELNET_EV_ERROR:
-		fprintf(stderr, "ERROR: %.*s\n", ev->size, ev->buffer);
+		fprintf(stderr, "ERROR: %s\n", ev->buffer);
 		exit(1);
 	default:
 		/* ignore */