mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
URL unescape: Use size_t for length.
This commit is contained in:
parent
7202ff2f64
commit
a543206075
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user