From 8a60b427b6ff6745be118ae9229169e1d26512b0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 4 Sep 2015 15:36:36 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsclient/inbound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libmdsclient/inbound.c b/src/libmdsclient/inbound.c index 7b8a0fc..6fcd8ec 100644 --- a/src/libmdsclient/inbound.c +++ b/src/libmdsclient/inbound.c @@ -114,8 +114,8 @@ libmds_message_t* libmds_message_duplicate(libmds_message_t* restrict this) * @param allow_modified_nul Whether Modified UTF-8 is allowed, which allows a two-byte encoding for NUL * @return Zero if good, -1 on encoding error */ -__attribute__((nonnull, warn_unused_result)) -static int verify_utf8(const char* string, int allow_modified_nul) /* Cannibalised from */ +__attribute__((nonnull, warn_unused_result)) /* Cannibalised from . */ +static int verify_utf8(const char* string, int allow_modified_nul) { static long BYTES_TO_MIN_BITS[] = {0, 0, 8, 12, 17, 22, 37}; static long BYTES_TO_MAX_BITS[] = {0, 7, 11, 16, 21, 26, 31}; -- cgit v1.2.3-70-g09d2