diff --git a/input.c b/input.c
index 4035b2c8..ff7990e0 100644
--- a/input.c
+++ b/input.c
@@ -590,7 +590,7 @@ input_handle_character(u_char ch, struct input_ctx *ictx)
 
 	if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) {
 		if (utf8_open(&ictx->utf8data, ch)) {
-			log_debug2("-- utf8 size %u: %zu: %hhu (%c)", 
+			log_debug2("-- utf8 size %zu: %zu: %hhu (%c)", 
 			    ictx->utf8data.size, ictx->off, ch, ch);
 			input_state(ictx, input_state_utf8);
 			return;
diff --git a/utf8.c b/utf8.c
index 52cc709e..00b1c736 100644
--- a/utf8.c
+++ b/utf8.c
@@ -227,7 +227,7 @@ utf8_open(struct utf8_data *utf8data, u_char ch)
 /*
  * Append character to UTF-8, closing if finished.
  *
- * Returns 1 if more UTF-8 data to come, 1 if finished.
+ * Returns 1 if more UTF-8 data to come, 0 if finished.
  */
 int
 utf8_append(struct utf8_data *utf8data, u_char ch)