Explorar o código

Small correction

Piotr Czajkowski %!s(int64=6) %!d(string=hai) anos
pai
achega
b4ea9f25de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);