Browse Source

Small correction

Piotr Czajkowski 6 years ago
parent
commit
b4ea9f25de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      curl.c

+ 1 - 1
curl.c

@@ -61,7 +61,7 @@ char *getData(char *url) {
 
 	size_t dataSize = strlen(chunk.memory);
 	char *data = calloc(dataSize + 1, 1);
-	data = strncpy(data, chunk.memory, dataSize);  
+	strncpy(data, chunk.memory, dataSize);  
 
 	/* cleanup curl stuff */ 
 	curl_easy_cleanup(curl_handle);