summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-23 17:40:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-23 17:40:30 +0100
commit38f05a24a5da2c3692fa41a28aad6bc767a08b92 (patch)
tree7ff79b53a334f7707dc780227b6d3b0ecddbd287 /contrib
parenta90f88ca6b5561e3b99c92da508495c4a47956a3 (diff)
downloadrspamd-38f05a24a5da2c3692fa41a28aad6bc767a08b92.tar.gz
rspamd-38f05a24a5da2c3692fa41a28aad6bc767a08b92.zip
[CritFix] Fix ucl escape for bad symbols
Issue: #2194
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libucl/ucl_emitter_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libucl/ucl_emitter_utils.c b/contrib/libucl/ucl_emitter_utils.c
index 11a6c4b3d..0831b3bf9 100644
--- a/contrib/libucl/ucl_emitter_utils.c
+++ b/contrib/libucl/ucl_emitter_utils.c
@@ -138,7 +138,7 @@ ucl_elt_string_write_json (const char *str, size_t size,
break;
default:
/* Emit unicode unknown character */
- func->ucl_emitter_append_len ("\\uFFFD", 5, func->ud);
+ func->ucl_emitter_append_len ("\\uFFFD", 6, func->ud);
break;
}
len = 0;