Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
25:8507bf644fdf
Parent:
20:95abdea56064
diff -r 96ae4d5375ef -r 8507bf644fdf urlencode.c
--- 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;