commit fc856ff: [Minor] Fix format string
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Nov 20 20:56:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-11-20 20:54:01 +0000
URL: https://github.com/rspamd/rspamd/commit/fc856fffe2a2ef0a7dfbacad372c7f6ca8b3a586 (HEAD -> master)
[Minor] Fix format string
---
src/libserver/rspamd_control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index 21a8c495e..e1c39ccaa 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -929,7 +929,7 @@ rspamd_srv_handler (EV_P_ ev_io *w, int revents)
}
else if (r != sizeof (cmd)) {
msg_err ("cannot read from worker's srv pipe incomplete command: %d != %d; command = %s",
- (gint)r, sizeof(cmd), rspamd_srv_command_to_string(cmd.type));
+ (gint)r, (gint)sizeof(cmd), rspamd_srv_command_to_string(cmd.type));
}
else {
rdata = g_malloc0 (sizeof (*rdata));
More information about the Commits
mailing list