diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |