From 363d02b8ad0b52a18e85f4da0b595b9904eb91f0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 8 Feb 2013 23:39:41 +0000 Subject: [PATCH] Pedantic wrap. --- desktop/textarea.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/desktop/textarea.c b/desktop/textarea.c index a15d64ca2..555178065 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -1840,8 +1840,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key) && line < ta->line_count - 1) b_len--; - l_len = utf8_bounded_length( - &(ta->text.data[b_off]), + l_len = utf8_bounded_length(&(ta->text.data[b_off]), b_len); ta->caret_pos.line = line; @@ -1891,8 +1890,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key) line < ta->line_count - 1) b_len--; - l_len = utf8_bounded_length( - &(ta->text.data[b_off]), + l_len = utf8_bounded_length(&(ta->text.data[b_off]), b_len); ta->caret_pos.line = line;