diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-15 18:25:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-15 18:25:15 +0000 |
commit | 4d436a67f1c15b4c1e47864a7d7f267162a7da79 (patch) | |
tree | f504e902c083d5f4324259c855cfce55047e53e3 /test | |
parent | c234e5bc9c8b19625009d3925f37875e5fa820d4 (diff) | |
download | rspamd-4d436a67f1c15b4c1e47864a7d7f267162a7da79.tar.gz rspamd-4d436a67f1c15b4c1e47864a7d7f267162a7da79.zip |
[Fix] Fix issues found
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/utf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/unit/utf.lua b/test/lua/unit/utf.lua index 75dd33977..2d2c77f67 100644 --- a/test/lua/unit/utf.lua +++ b/test/lua/unit/utf.lua @@ -5,7 +5,7 @@ context("UTF8 check functions", function() ffi.cdef[[ unsigned int rspamd_str_lc_utf8 (char *str, unsigned int size); unsigned int rspamd_str_lc (char *str, unsigned int size); - char * rspamd_str_make_utf_valid (const char *src, size_t slen, size_t *dstlen); + char * rspamd_str_make_utf_valid (const char *src, size_t slen, size_t *dstlen, void *); ]] local cases = { @@ -58,7 +58,7 @@ context("UTF8 check functions", function() local buf = ffi.new("char[?]", #c[1] + 1) ffi.copy(buf, c[1]) - local s = ffi.string(ffi.C.rspamd_str_make_utf_valid(buf, #c[1], NULL)) + local s = ffi.string(ffi.C.rspamd_str_make_utf_valid(buf, #c[1], NULL, NULL)) local function to_hex(s) return (s:gsub('.', function (c) return string.format('%02X', string.byte(c)) |