aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-05 17:02:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-05 17:02:39 +0000
commitcd2b10baed3c84a88c22573087f7c055eb04e46a (patch)
treef14ec4983c8b1fad94bb00488a945352f4c4ccf1 /src/libmime/mime_expressions.c
parentb689a807525232e6f0596d9360cb575e870300c2 (diff)
downloadrspamd-cd2b10baed3c84a88c22573087f7c055eb04e46a.tar.gz
rspamd-cd2b10baed3c84a88c22573087f7c055eb04e46a.zip
[Minor] Fix format string
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index 1fc445c81..0961195a2 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -784,7 +784,7 @@ rspamd_mime_expr_parse (const gchar *line, gsize len,
case bad_atom:
g_set_error (err, rspamd_mime_expr_quark(), 100, "cannot parse"
" mime atom '%s' when reading symbol '%c' at offset %d, "
- "near %*.s", line, t, (gint)(p - line),
+ "near %.*s", line, t, (gint)(p - line),
(gint)MIN (end - p, 10), p);
return NULL;
case end_atom:
@@ -966,14 +966,14 @@ set:
if (function_obj == NULL) {
g_set_error (err, rspamd_mime_expr_quark(), 320,
- "function %*.s is not found for '%s'",
+ "function %.*s is not found for '%s'",
(int)(p - c), c, mime_atom->str);
goto err;
}
if (ucl_object_type (function_obj) != UCL_USERDATA) {
g_set_error (err, rspamd_mime_expr_quark(), 320,
- "function %*.s has invalid type for '%s'",
+ "function %.*s has invalid type for '%s'",
(int)(p - c), c, mime_atom->str);
goto err;
}