diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-20 22:17:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-20 22:17:34 +0000 |
commit | 2fd06fa1201891fe033df71a514fc2002617c2d1 (patch) | |
tree | a7342c4cf381e9fb7e8bdf7ae706cb7113235400 /usr.bin | |
parent | fefdaa908c92564d5620af6bc82c77d9c5e92984 (diff) |
%zu not %u, doh.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/input.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/utf8.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 6d3cf4f17b8..66b098ce6f9 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.18 2009/10/20 19:18:28 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.19 2009/10/20 22:17:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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/usr.bin/tmux/utf8.c b/usr.bin/tmux/utf8.c index 9c09f0fc127..c4af1c36bc2 100644 --- a/usr.bin/tmux/utf8.c +++ b/usr.bin/tmux/utf8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utf8.c,v 1.4 2009/10/20 19:18:28 nicm Exp $ */ +/* $OpenBSD: utf8.c,v 1.5 2009/10/20 22:17:33 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |