summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-04-27 06:01:05 +0200
committerGravatar grunfink2025-04-27 06:01:05 +0200
commit94a07f93d527ecef3376de566ccf7d74fa2dadd3 (patch)
treee0a64025b2f1e27d83a5d14a92a9cf74b64001d6
parentUpdated documentation. (diff)
downloadpenes-snac2-94a07f93d527ecef3376de566ccf7d74fa2dadd3.tar.gz
penes-snac2-94a07f93d527ecef3376de566ccf7d74fa2dadd3.tar.xz
penes-snac2-94a07f93d527ecef3376de566ccf7d74fa2dadd3.zip
Fixed length error in xs_smtp_request().
Diffstat (limited to '')
-rw-r--r--xs_curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 0609a08..ac543b1 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -200,6 +200,7 @@ xs_dict *xs_http_request(const char *method, const char *url,
200 return response; 200 return response;
201} 201}
202 202
203
203int xs_smtp_request(const char *url, const char *user, const char *pass, 204int xs_smtp_request(const char *url, const char *user, const char *pass,
204 const char *from, const char *to, const xs_str *body, 205 const char *from, const char *to, const xs_str *body,
205 int use_ssl) 206 int use_ssl)
@@ -209,7 +210,7 @@ int xs_smtp_request(const char *url, const char *user, const char *pass,
209 struct curl_slist *rcpt = NULL; 210 struct curl_slist *rcpt = NULL;
210 struct _payload_data pd = { 211 struct _payload_data pd = {
211 .data = (char *)body, 212 .data = (char *)body,
212 .size = xs_size(body), 213 .size = strlen(body),
213 .offset = 0 214 .offset = 0
214 }; 215 };
215 216