Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
25:8507bf644fdf
Parent:
20:95abdea56064
Child:
43:00b607807827
--- a/urlencode.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/urlencode.c	Fri Apr 21 14:51:10 2017 -0700
@@ -139,7 +139,7 @@
             currentUnsignedChar = (unsigned char)(*currentInput++);
             lengthOfResult += URL_PrintableCharSize(currentUnsignedChar);
         } while (currentUnsignedChar != 0);
-        if ((encodedURL = malloc(lengthOfResult)) == NULL)
+        if ((encodedURL = (char*)malloc(lengthOfResult)) == NULL)
         {
             /*Codes_SRS_URL_ENCODE_06_002: [If an error occurs during the encoding of input then URL_Encode will return NULL.]*/
             result = NULL;