URL unescape: Use size_t for length.

This commit is contained in:
Michael Drake 2016-07-24 12:33:51 +01:00
parent 7202ff2f64
commit a543206075
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
/* exported interface documented in utils/url.h */
nserror url_unescape(const char *str, int length, char **result)
nserror url_unescape(const char *str, size_t length, char **result)
{
char *curlstr;
char *retstr;

View File

@ -50,6 +50,6 @@ nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus,
* \param[out] result unescaped string owned by caller must be freed with free()
* \return NSERROR_OK on success
*/
nserror url_unescape(const char *str, int length, char **result);
nserror url_unescape(const char *str, size_t length, char **result);
#endif