commit 3d7508efc2c9522ebf7a0e735e151aacd3a28542
parent 33495a785319543c1036da68d781ea31e705ef9e
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Sun, 16 Jun 2024 15:09:31 +0200
fix(basicauth): password length
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/caldav.c b/src/caldav.c
@@ -437,7 +437,7 @@ char* caldav_req(struct tm* date, char* url, char* http_method, char* postfields
// default to basic auth when Google credentials are not set
if (basicauth) {
- char basicauth [strlen(CONFIG.caldav_username) + strlen(CONFIG.caldav_username) + 1];
+ char basicauth [strlen(CONFIG.caldav_username) + strlen(CONFIG.caldav_password) + 1];
sprintf(basicauth, "%s:%s", CONFIG.caldav_username, CONFIG.caldav_password);
curl_easy_setopt(curl, CURLOPT_USERPWD, basicauth);
}