aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamdclient.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 16:01:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 16:01:40 +0100
commit6c322a12006df399871cf80b560d7813714358bf (patch)
treeb0c925e1c1ac512bcfe8f42ba7b333df5f449c35 /src/client/rspamdclient.c
parent58fe582b5d21d10d365954759fcb4c436b557810 (diff)
downloadrspamd-6c322a12006df399871cf80b560d7813714358bf.tar.gz
rspamd-6c322a12006df399871cf80b560d7813714358bf.zip
Fix client.
Diffstat (limited to 'src/client/rspamdclient.c')
-rw-r--r--src/client/rspamdclient.c6
1 files 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;