]> granicus.if.org Git - curl/commitdiff
http_proxy: fix build error for CURL_DOES_CONVERSIONS
authorMaksim Stsepanenka <good.man@tut.by>
Wed, 16 Aug 2017 15:33:33 +0000 (18:33 +0300)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 16 Aug 2017 18:41:31 +0000 (14:41 -0400)
Closes https://github.com/curl/curl/pull/1793

lib/http_proxy.c

index 5c5f8fb2caacaae1a2b573fc1db0f7ab3c8c95fa..5a1dc0b86f7f6f8decd69c34beea9c88b88ff025 100644 (file)
@@ -410,7 +410,8 @@ static CURLcode CONNECT(struct connectdata *conn,
         }
 
         /* convert from the network encoding */
-        result = Curl_convert_from_network(data, line_start, perline);
+        result = Curl_convert_from_network(data, s->line_start,
+                                           (size_t)s->perline);
         /* Curl_convert_from_network calls failf if unsuccessful */
         if(result)
           return result;