]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Workaround for old libicu (docs in libicu are still wrong)
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 11:06:56 +0000 (12:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 11:06:56 +0000 (12:06 +0100)
src/libserver/html/html_entities.cxx

index 97c84f64e8183a2f986c723ef4da8d3c6314f8fc..d024c12e1d0bdf5866225e975dcd35890618e5b2 100644 (file)
@@ -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;