summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index dec4c7e..ad7c174 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,7 +60,7 @@ int main(int argc, char ** argv) {
struct writefunc_string s;
init_writefunc_string(&s);
- char * data = malloc(sizeof(DC_LOGIN_FORMAT)+strlen(email)+strlen(password));
+ char * data = malloc(strlen(DC_LOGIN_FORMAT)+strlen(email)+strlen(password));
sprintf(data, DC_LOGIN_FORMAT, email, password);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Content-Type: application/json");