From 6c322a12006df399871cf80b560d7813714358bf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 7 Oct 2015 16:01:40 +0100 Subject: [PATCH] Fix client. --- src/client/rspamdclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c index 7f4e8aff5..7aeb6ba8d 100644 --- a/src/client/rspamdclient.c +++ b/src/client/rspamdclient.c @@ -247,7 +247,7 @@ rspamd_client_command (struct rspamd_client_connection *conn, return FALSE; } - req->msg->body = g_string_new_len (input->str, input->len); + req->msg->body = rspamd_fstring_new_init (input->str, input->len); req->input = input; } else { @@ -261,8 +261,8 @@ rspamd_client_command (struct rspamd_client_connection *conn, rspamd_http_message_add_header (req->msg, hn, hv); } - g_string_append_c (req->msg->url, '/'); - g_string_append (req->msg->url, command); + req->msg->url = rspamd_fstring_append (req->msg->url, "/", 1); + req->msg->url = rspamd_fstring_append (req->msg->url, command, strlen (command)); conn->req = req; -- 2.39.5