aboutsummaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-04-27 06:01:05 +0200
committergrunfink <grunfink@comam.es>2025-04-27 06:01:05 +0200
commit94a07f93d527ecef3376de566ccf7d74fa2dadd3 (patch)
treee0a64025b2f1e27d83a5d14a92a9cf74b64001d6 /xs_curl.h
parent08dc4290df40aab309470ad06e0f8f751b26db86 (diff)
Fixed length error in xs_smtp_request().
Diffstat (limited to 'xs_curl.h')
-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,
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
};