summaryrefslogtreecommitdiff
path: root/utils/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/url.h')
-rw-r--r--utils/url.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/url.h b/utils/url.h
index aafdf1e15..94579e39e 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -46,9 +46,10 @@ nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus,
* Convert an escaped string to plain.
*
* \param[in] str String to unescape.
+ * \parm[in] length Length of string or 0 to use strlen
* \param[out] result unescaped string owned by caller must be freed with free()
- * \return NSERROR_OK on success
+ * \return NSERROR_OK on success
*/
-nserror url_unescape(const char *str, char **result);
+nserror url_unescape(const char *str, int length, char **result);
#endif