commit d7821a4: [Minor] Workaround for old libicu (docs in libicu are still wrong)

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jun 23 11:14:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-23 12:06:56 +0100
URL: https://github.com/rspamd/rspamd/commit/d7821a49dda9495642aafc8aa1e6b2bc50c6e6d7 (HEAD -> master)

[Minor] Workaround for old libicu (docs in libicu are still wrong)

---
 src/libserver/html/html_entities.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/html/html_entities.cxx b/src/libserver/html/html_entities.cxx
index 97c84f64e..d024c12e1 100644
--- a/src/libserver/html/html_entities.cxx
+++ b/src/libserver/html/html_entities.cxx
@@ -2399,7 +2399,7 @@ decode_html_entitles_inplace(char *s, std::size_t len, bool norm_spaces)
 				UBool is_error = 0;
 
 				if (uc > 0) {
-					U8_APPEND (s, off, len, uc, is_error);
+					U8_APPEND ((std::uint8_t *)s, off, len, uc, is_error);
 
 					if (!is_error) {
 						t = s + off;


More information about the Commits mailing list