snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 94a07f93d527ecef3376de566ccf7d74fa2dadd3
parent 08dc4290df40aab309470ad06e0f8f751b26db86
Author: grunfink <grunfink@comam.es>
Date:   Sun, 27 Apr 2025 06:01:05 +0200

Fixed length error in xs_smtp_request().

Diffstat:
Mxs_curl.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xs_curl.h b/xs_curl.h @@ -200,6 +200,7 @@ xs_dict *xs_http_request(const char *method, const char *url, return response; } + int xs_smtp_request(const char *url, const char *user, const char *pass, const char *from, const char *to, const xs_str *body, int use_ssl) @@ -209,7 +210,7 @@ int xs_smtp_request(const char *url, const char *user, const char *pass, struct curl_slist *rcpt = NULL; struct _payload_data pd = { .data = (char *)body, - .size = xs_size(body), + .size = strlen(body), .offset = 0 };