From: Vsevolod Stakhov Date: Wed, 7 Oct 2015 15:01:40 +0000 (+0100) Subject: Fix client. X-Git-Tag: 1.0.5~66^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c322a12006df399871cf80b560d7813714358bf;p=rspamd.git Fix client. --- 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;