changeset 17:6fa530cc1188

unicode: fix invalid uni8_length compute
author David Demelier <markand@malikania.fr>
date Mon, 11 Oct 2021 20:57:32 +0200
parents b5bcb17b9115
children 9b2038be6af4
files gen/unicode-after.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/unicode-after.c	Fri Aug 06 11:52:41 2021 +0200
+++ b/gen/unicode-after.c	Mon Oct 11 20:57:32 2021 +0200
@@ -123,7 +123,7 @@
 		if ((gap = uni8_sizeof(*src)) == (size_t)-1)
 			return -1;
 
-		total += gap;
+		total += 1;
 		src += gap;
 	}