From 139d94c45a8bc6f00900e4fa8f1699433a78c56f Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 26 Sep 2011 07:34:10 +1000 Subject: [PATCH] Tabs not inserted as control characters Due to missing parens in non-utf8 version of utf8_strlen() Reported-by: Karl Robillard Signed-off-by: Steve Bennett --- utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.h b/utf8.h index 11dc51b..9537939 100644 --- a/utf8.h +++ b/utf8.h @@ -12,7 +12,7 @@ #include /* No utf-8 support. 1 byte = 1 char */ -#define utf8_strlen(S, B) (B) < 0 ? (int)strlen(S) : (B) +#define utf8_strlen(S, B) ((B) < 0 ? (int)strlen(S) : (B)) #define utf8_tounicode(S, CP) (*(CP) = (unsigned char)*(S), 1) #define utf8_index(C, I) (I) #define utf8_charlen(C) 1 -- 2.44.0